mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 13:30:27 +01:00
Mark some functions as printf-like to silence some compiler warnings
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
7cccee251f
commit
9564b3c1e2
3 changed files with 3 additions and 0 deletions
|
|
@ -1421,6 +1421,7 @@ END_TEST
|
|||
|
||||
char *debug_messages[64] = { NULL };
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(3, 0)
|
||||
static void
|
||||
debug_log_handler(struct libinput *libinput,
|
||||
enum libinput_log_priority priority,
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ struct context {
|
|||
} abs;
|
||||
};
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(1, 2)
|
||||
static void
|
||||
print_line(const char *format, ...)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
static bool verbose = false;
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(3, 0)
|
||||
static void
|
||||
log_handler(struct libinput *this_is_null,
|
||||
enum libinput_log_priority priority,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue