mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-24 17:00:07 +01:00
Drop trailing comma from last element in the enums
If a caller is compiled with -pedantic, this causes a few complaints Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
7a38f4abc3
commit
8c7c55059d
2 changed files with 6 additions and 7 deletions
|
|
@ -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 */
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue