[PATCH libevdev 1/3] Drop trailing comma from last element in the enums
Peter Hutterer
peter.hutterer at who-t.net
Thu Nov 21 18:31:16 PST 2013
If a caller is compiled with -pedantic, this causes a few complaints
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
libevdev/libevdev-uinput.h | 2 +-
libevdev/libevdev.h | 11 +++++------
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/libevdev/libevdev-uinput.h b/libevdev/libevdev-uinput.h
index f1622f2..e288e9a 100644
--- a/libevdev/libevdev-uinput.h
+++ b/libevdev/libevdev-uinput.h
@@ -104,7 +104,7 @@ enum libevdev_uinput_open_mode {
/* intentionally -2 to avoid to avoid code like the below from accidentally working:
fd = open("/dev/uinput", O_RDWR); // fails, fd is -1
libevdev_uinput_create_from_device(dev, fd, &uidev); // may hide the error */
- LIBEVDEV_UINPUT_OPEN_MANAGED = -2, /**< let libevdev open and close @c /dev/uinput */
+ LIBEVDEV_UINPUT_OPEN_MANAGED = -2 /**< let libevdev open and close @c /dev/uinput */
};
/**
diff --git a/libevdev/libevdev.h b/libevdev/libevdev.h
index 121fb3e..72b1419 100644
--- a/libevdev/libevdev.h
+++ b/libevdev/libevdev.h
@@ -352,8 +352,7 @@ enum libevdev_read_flag {
LIBEVDEV_READ_FLAG_NORMAL = 2, /**< Process data in normal mode */
LIBEVDEV_READ_FLAG_FORCE_SYNC = 4, /**< Pretend the next event is a SYN_DROPPED and
require the caller to sync */
- LIBEVDEV_READ_FLAG_BLOCKING = 8, /**< The fd is not in O_NONBLOCK and a read may block */
-
+ LIBEVDEV_READ_FLAG_BLOCKING = 8 /**< The fd is not in O_NONBLOCK and a read may block */
};
/**
@@ -414,7 +413,7 @@ void libevdev_free(struct libevdev *dev);
enum libevdev_log_priority {
LIBEVDEV_LOG_ERROR = 10, /**< critical errors and application bugs */
LIBEVDEV_LOG_INFO = 20, /**< informational messages */
- LIBEVDEV_LOG_DEBUG = 30, /**< debug information */
+ LIBEVDEV_LOG_DEBUG = 30 /**< debug information */
};
/**
@@ -477,7 +476,7 @@ enum libevdev_log_priority libevdev_get_log_priority(void);
*/
enum libevdev_grab_mode {
LIBEVDEV_GRAB = 3, /**< Grab the device if not currently grabbed */
- LIBEVDEV_UNGRAB = 4, /**< Ungrab the device if currently grabbed */
+ LIBEVDEV_UNGRAB = 4 /**< Ungrab the device if currently grabbed */
};
/**
@@ -581,7 +580,7 @@ enum libevdev_read_status {
*
* @see libevdev_next_event
*/
- LIBEVDEV_READ_STATUS_SYNC = 1,
+ LIBEVDEV_READ_STATUS_SYNC = 1
};
/**
* @ingroup events
@@ -1297,7 +1296,7 @@ int libevdev_kernel_set_abs_info(struct libevdev *dev, unsigned int code, const
*/
enum libevdev_led_value {
LIBEVDEV_LED_ON = 3,
- LIBEVDEV_LED_OFF = 4,
+ LIBEVDEV_LED_OFF = 4
};
/**
--
1.8.3.1
More information about the Input-tools
mailing list