projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97399fc
)
i965/disasm: Mark format() as being printf-style.
author
Chris Forbes
<chrisf@ijw.co.nz>
Fri, 13 Mar 2015 18:10:10 +0000
(07:10 +1300)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_disasm.c
b/src/mesa/drivers/dri/i965/brw_disasm.c
index 863a6b323ce92a2b1d35f86791df1d4620722a30..c92c534cc125924c70f9941de2a0b53e64b37285 100644
(file)
--- 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, ...)
{