diff options
author | Chris Forbes <[email protected]> | 2015-03-14 07:10:10 +1300 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2015-03-14 07:50:48 +1300 |
commit | 7c3095d6b71c410fd625ead797c78a0f5376904d (patch) | |
tree | a969aaa82d27e4ff0d13019f92f4d4866a358094 | |
parent | 97399fc751a0f9750c4f9585dfed14b662ebec2e (diff) |
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 <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_disasm.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 @@ -597,6 +597,9 @@ string(FILE *file, const char *string) } static int +format(FILE *f, const char *format, ...) PRINTFLIKE(2, 3); + +static int format(FILE *f, const char *format, ...) { char buf[1024]; |