From f2d484e8652a1d5ac406d0d3a6c527e9f75ef0f2 Mon Sep 17 00:00:00 2001 From: Terrence Enger Date: Sat, 7 Jul 2012 11:32:52 -0400 Subject: "Wunused-but-set-variable" was new in gcc 4.6 Condition new #pragma by gcc version Change-Id: I0e5273c267e3514529de90d79cc221b44dbdcf9c --- l10ntools/source/srclex.l | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'l10ntools/source/srclex.l') diff --git a/l10ntools/source/srclex.l b/l10ntools/source/srclex.l index 60017259503f..2fbd3f0e6278 100644 --- a/l10ntools/source/srclex.l +++ b/l10ntools/source/srclex.l @@ -28,6 +28,8 @@ #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) #pragma GCC diagnostic ignored "-Wunused-function" #pragma GCC diagnostic ignored "-Wunused-label" +#endif +#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif #elif defined __SINPRO_CC @@ -154,8 +156,8 @@ void YYWarning(); WorkOnTokenSet( TEXTREFID, yytext ); } -[a-zA-Z0-9_]+[ \t]*"="[\t ]*([ \t]*"//".*\n)*.* | -[a-zA-Z0-9_]+[ \t]*"=".* { +[a-zA-Z0-9_]+[ \t]*"="[\t ]*([ \t]*"//".*\n)*.* | +[a-zA-Z0-9_]+[ \t]*"=".* { /* ASSIGNMENT Typ = ... */ WorkOnTokenSet( ASSIGNMENT, yytext ); } -- cgit