summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2012-10-15 00:49:13 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-10-15 13:04:07 -0400
commit0d77c5302e58e6a176521a6fef10300a0ee7e98a (patch)
tree2fea0f0a845ea6da5bd743631d7861d438a491ea
parentf36c61571f66e79ddd5be38f094067b1fb09f86a (diff)
scanner: use printf format attributes for desc_dump
-rw-r--r--src/scanner.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scanner.c b/src/scanner.c
index d0e64c0..69fefb3 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;