Add format string warnings to printf-style functions
diff --git a/audio/headset.c b/audio/headset.c
index 7e68746..0be06cb 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -318,7 +318,8 @@
return 0;
}
-static int headset_send(struct headset *hs, char *format, ...)
+static int __attribute__((format(printf, 2, 3)))
+ headset_send(struct headset *hs, char *format, ...)
{
va_list ap;
int ret;
@@ -502,7 +503,8 @@
return cb->id;
}
-static void send_foreach_headset(GSList *devices,
+static void __attribute__((format(printf, 3, 4)))
+ send_foreach_headset(GSList *devices,
int (*cmp) (struct headset *hs),
char *format, ...)
{