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:
Peter Hutterer 2021-07-22 15:25:03 +10:00
parent 7cccee251f
commit 9564b3c1e2
3 changed files with 3 additions and 0 deletions

View file

@ -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,

View file

@ -72,6 +72,7 @@ struct context {
} abs;
};
LIBINPUT_ATTRIBUTE_PRINTF(1, 2)
static void
print_line(const char *format, ...)
{

View file

@ -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,