From: Chris Forbes Date: Fri, 13 Mar 2015 18:10:10 +0000 (+1300) Subject: i965/disasm: Mark format() as being printf-style. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c3095d6b71c410fd625ead797c78a0f5376904d;p=mesa.git i965/disasm: Mark format() as being printf-style. This allows us to get warnings from GCC when we mess up the format strings. Signed-off-by: Chris Forbes Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 863a6b323ce..c92c534cc12 100644 --- a/src/mesa/drivers/dri/i965/brw_disasm.c +++ b/src/mesa/drivers/dri/i965/brw_disasm.c @@ -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, ...) {