silence p_debug.h:63: warning: ISO C forbids forward references to ‘enum’ types
This commit is contained in:
@@ -413,11 +413,11 @@ char *pf_sprint_name( char *str, enum pipe_format format )
|
||||
}
|
||||
|
||||
|
||||
void debug_print_format(const char *msg, enum pipe_format fmt )
|
||||
void debug_print_format(const char *msg, unsigned fmt )
|
||||
{
|
||||
char fmtstr[80];
|
||||
|
||||
pf_sprint_name(fmtstr, fmt);
|
||||
pf_sprint_name(fmtstr, (enum pipe_format)fmt);
|
||||
|
||||
debug_printf("%s: %s\n", msg, fmtstr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user