diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-02-04 13:57:48 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-02-04 15:23:29 +0000 |
commit | ba2885b09e7c3f4870e4423abbbde6f432ee2378 (patch) | |
tree | 46a4e07ef41c4fb637d2f4f81e36ec65d62626c1 | |
parent | 37f6ef57a03cb4694fc7dcbc5106f22a2e443dd5 (diff) |
assembler: Mark format() as PRINTFLIKE in the disassemblerwip/mesa-sync
So when making changes in code using that function, we get warnings
about mismatches between the format string and arguments.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
-rw-r--r-- | assembler/brw_disasm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/assembler/brw_disasm.c b/assembler/brw_disasm.c index 3fee682..4dec829 100644 --- a/assembler/brw_disasm.c +++ b/assembler/brw_disasm.c @@ -27,6 +27,7 @@ #include <unistd.h> #include <stdarg.h> +#include "brw_compat.h" #include "brw_context.h" #include "brw_defines.h" @@ -400,6 +401,7 @@ static int 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, ...) { char buf[1024]; |