diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-06-21 15:15:34 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-06-23 14:14:57 -0700 |
commit | 12a820c9d84cec0e2f36d9571ca841499b67eac4 (patch) | |
tree | 579c38a2176d59ef40dc9b36a7e2addb6737a922 | |
parent | d07bb7b83a664717009c40bd940b3025f4bb96a7 (diff) |
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.
-rw-r--r-- | glcpp/glcpp-lex.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glcpp/glcpp-lex.l b/glcpp/glcpp-lex.l index fabe756603..afddd7ddb3 100644 --- a/glcpp/glcpp-lex.l +++ b/glcpp/glcpp-lex.l @@ -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; |