]> git.saurik.com Git - bison.git/commitdiff
yacc.c: also disable -Wuninitialized.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 6 Nov 2012 14:34:56 +0000 (15:34 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 6 Nov 2012 16:36:04 +0000 (17:36 +0100)
* data/yacc.c (YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN): For some versions
of GCC, -Wmaybe-uninitialized alone does not suffice.

data/yacc.c

index b9a4fb182ff92c578a1fb83ba372a0b7d3d37686..2e0ecc258f37f41c1013e34c1cdd31b2f3d03e2b 100644 (file)
@@ -175,6 +175,7 @@ int yychar;
 /* Suppress an incorrect diagnostic about yylval being uninitialized.  */
 # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
     _Pragma ("GCC diagnostic push") \
+    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
     _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
 # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
     _Pragma ("GCC diagnostic pop")