mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-23 18:06:18 +00:00
assembler: Mark format() as PRINTFLIKE in the disassembler
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>
This commit is contained in:
parent
92262e1ff8
commit
4591991769
@ -27,6 +27,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#include "brw_compat.h"
|
||||||
#include "brw_context.h"
|
#include "brw_context.h"
|
||||||
#include "brw_defines.h"
|
#include "brw_defines.h"
|
||||||
|
|
||||||
@ -400,6 +401,7 @@ static int string (FILE *file, const char *string)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int format (FILE *f, const char *format, ...) PRINTFLIKE(2, 3);
|
||||||
static int format (FILE *f, const char *format, ...)
|
static int format (FILE *f, const char *format, ...)
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user