From: Kenneth Graunke Date: Mon, 21 Jun 2010 22:15:34 +0000 (-0700) Subject: glcpp: Fix "dangerous trailing context" warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12a820c9d84cec0e2f36d9571ca841499b67eac4;p=mesa.git 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. --- diff --git a/glcpp/glcpp-lex.l b/glcpp/glcpp-lex.l index fabe7566030..afddd7ddb32 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;