[PATCH 3/3] scanner: use printf format attributes for desc_dump
Olivier Blin
dev at blino.org
Sun Oct 14 15:49:13 PDT 2012
---
src/scanner.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/scanner.c b/src/scanner.c
index c09a88f..58f5dc3 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -158,6 +158,9 @@ static const char *indent(int n)
}
static void
+desc_dump(char *desc, const char *fmt, ...) __attribute__((format(printf,2,3)));
+
+static void
desc_dump(char *desc, const char *fmt, ...)
{
va_list ap;
--
1.7.12.3
More information about the wayland-devel
mailing list