glcpp: Fix "dangerous trailing context" warning.
Flex couldn't be sure whether "def" and "ndef" were part of the #ifdef and #ifndef patterns or the trailing context of the #if pattern.
This commit is contained in:
committed by
Ian Romanick
parent
d07bb7b83a
commit
12a820c9d8
+1
-1
@@ -97,7 +97,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
|
||||
return HASH_IFNDEF;
|
||||
}
|
||||
|
||||
{HASH}if/.*\n {
|
||||
{HASH}if{HSPACE}/.*\n {
|
||||
yyextra->lexing_if = 1;
|
||||
yyextra->space_tokens = 0;
|
||||
return HASH_IF;
|
||||
|
||||
Reference in New Issue
Block a user