mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
Avoid warnings in flex-generated code.
Add declarations for two functions generated in the flex ouput. It would be nicer if flex simply declared these generated functions as static, but for now we can at least avoid the warning this way.
This commit is contained in:
parent
aa9003e20e
commit
3c716a7ec2
1 changed files with 6 additions and 0 deletions
|
|
@ -140,6 +140,12 @@ handle_ident(struct asm_parser_state *state, const char *text, YYSTYPE *lval)
|
|||
} while(0);
|
||||
|
||||
#define YY_EXTRA_TYPE struct asm_parser_state *
|
||||
|
||||
/* Flex defines a couple of functions with no declarations nor the
|
||||
static keyword. Declare them here to avoid a compiler warning. */
|
||||
int yyget_column (yyscan_t yyscanner);
|
||||
void yyset_column (int column_no , yyscan_t yyscanner);
|
||||
|
||||
%}
|
||||
|
||||
num [0-9]+
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue