[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix testsuite for --enable-gcc-warnings
From: |
Joel E. Denny |
Subject: |
Fix testsuite for --enable-gcc-warnings |
Date: |
Sat, 14 Oct 2006 20:02:23 -0400 (EDT) |
I installed this.
Index: ChangeLog
===================================================================
RCS file: /sources/bison/bison/ChangeLog,v
retrieving revision 1.1584
diff -p -u -r1.1584 ChangeLog
--- ChangeLog 13 Oct 2006 05:00:25 -0000 1.1584
+++ ChangeLog 14 Oct 2006 23:56:41 -0000
@@ -1,3 +1,13 @@
+2006-10-14 Joel E. Denny <address@hidden>
+
+ Fix testsuite for ./configure --enable-gcc-warnings:
+ * configure.ac (gcc-warnings): Move -Wall before -Wno-sign-compare.
+ Otherwise, gcc 4.1.0 (at least) warns about sign comparisons in
+ __AT_CHECK_PRINTER_AND_DESTRUCTOR in tests/actions.at.
+ * test/input.at (Torturing the Scanner): #include <stdlib.h> for abort.
+ * test/regression.at (Diagnostic that expects two alternatives):
+ Likewise.
+
2006-10-12 Paul Eggert <address@hidden>
* bootstrap.conf (gnulib_modules): Add config-h.
Index: configure.ac
===================================================================
RCS file: /sources/bison/bison/configure.ac,v
retrieving revision 1.75
diff -p -u -r1.75 configure.ac
--- configure.ac 13 Oct 2006 04:09:14 -0000 1.75
+++ configure.ac 14 Oct 2006 23:56:41 -0000
@@ -46,8 +46,8 @@ if test "${enableval}" = yes; then
gl_WARNING_CFLAGS([-Werror])
AC_SUBST([WERROR_CFLAGS], [$WARNING_CFLAGS])
WARNING_CFLAGS=
- gl_WARNING_CFLAGS([-Wextra -Wno-sign-compare])
gl_WARNING_CFLAGS([-Wall])
+ gl_WARNING_CFLAGS([-Wextra -Wno-sign-compare])
gl_WARNING_CFLAGS([-Wcast-align])
gl_WARNING_CFLAGS([-Wcast-qual])
gl_WARNING_CFLAGS([-Wformat])
Index: tests/input.at
===================================================================
RCS file: /sources/bison/bison/tests/input.at,v
retrieving revision 1.57
diff -p -u -r1.57 input.at
--- tests/input.at 6 Oct 2006 06:57:00 -0000 1.57
+++ tests/input.at 14 Oct 2006 23:56:42 -0000
@@ -396,6 +396,7 @@ char apostrophe = '\'';
#endif
#include <stdio.h>
+#include <stdlib.h>
%}
/* %{ and %} can be here too. */
Index: tests/regression.at
===================================================================
RCS file: /sources/bison/bison/tests/regression.at,v
retrieving revision 1.110
diff -p -u -r1.110 regression.at
--- tests/regression.at 13 Oct 2006 05:00:26 -0000 1.110
+++ tests/regression.at 14 Oct 2006 23:56:42 -0000
@@ -959,6 +959,7 @@ m4_define([_AT_DATA_EXPECT2_Y],
static int yylex (AT_LALR1_CC_IF([int *], [void]));
AT_LALR1_CC_IF([],
[#include <stdio.h>
+#include <stdlib.h>
static void yyerror (const char *);])
%}
$1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Fix testsuite for --enable-gcc-warnings,
Joel E. Denny <=