hotplug-sniffer: Add gnu_printf format attribute

Suggested by compiler with `-Wsuggest-attribute=format`

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/441
This commit is contained in:
Robert Mader 2019-03-05 23:43:01 +01:00 committed by Florian Müllner
parent 1e3a174de9
commit 1dff32e48a

View File

@ -266,7 +266,7 @@ main (int argc,
/* ---------------------------------------------------------------------------------------------------- */ /* ---------------------------------------------------------------------------------------------------- */
static void static void __attribute__((format(printf, 1, 0)))
print_debug (const gchar *format, ...) print_debug (const gchar *format, ...)
{ {
gchar *s; gchar *s;