mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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 <chrisf@ijw.co.nz> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
97399fc751
commit
7c3095d6b7
1 changed files with 3 additions and 0 deletions
|
|
@ -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, ...)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue