i965/disasm: Mark format() as being printf-style.
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 13 Mar 2015 18:10:10 +0000 (07:10 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 13 Mar 2015 18:50:48 +0000 (07:50 +1300)
This allows us to get warnings from GCC when we mess up the format
strings.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_disasm.c

index 863a6b323ce92a2b1d35f86791df1d4620722a30..c92c534cc125924c70f9941de2a0b53e64b37285 100644 (file)
@@ -596,6 +596,9 @@ string(FILE *file, const char *string)
    return 0;
 }
 
+static int
+format(FILE *f, const char *format, ...) PRINTFLIKE(2, 3);
+
 static int
 format(FILE *f, const char *format, ...)
 {