]> git.saurik.com Git - bison.git/commitdiff
Replace m4/warning.m4 with warnings module.
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 11 Nov 2008 12:37:36 +0000 (13:37 +0100)
committerPaolo Bonzini <bonzini@gnu.org>
Tue, 11 Nov 2008 12:37:36 +0000 (13:37 +0100)
* bootstrap.conf: Replace m4/warning.m4 with warnings module.
* configure.ac: Adjust usage.
* lib/Makefile.am: Replace $(WARNING_CFLAGS) with $(WARN_CFLAGS).
* src/Makefile.am: Replace $(WARNING_CFLAGS) with $(WARN_CFLAGS).
* tests/atlocal.in: Replace $(WARNING_*FLAGS) with $(WARN_*FLAGS).

ChangeLog
bootstrap.conf
configure.ac
gnulib
lib/Makefile.am
m4/.cvsignore
m4/.gitignore
src/Makefile.am
tests/atlocal.in

index 1af3ef25f3aac57857a5738fc193c924b0a011c9..aaf9c6169bcf056ceccd3f96d5a5b1cc7d3517ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
+
+       * bootstrap.conf: Replace m4/warning.m4 with warnings module.
+       * configure.ac: Adjust usage.
+       * lib/Makefile.am: Replace $(WARNING_CFLAGS) with $(WARN_CFLAGS).
+       * src/Makefile.am: Replace $(WARNING_CFLAGS) with $(WARN_CFLAGS).
+       * tests/atlocal.in: Replace $(WARNING_*FLAGS) with $(WARN_*FLAGS).
+
 2008-11-10  Di-an Jan  <dianj@freeshell.org>
 
        Workaround Java's ``code too large'' problem for parser tables
index 89d7db5d0e9b2ccd05854adf0538fb6a75d156cd..bcab1b89d1206020c58d3254410440d427d5df18 100644 (file)
@@ -21,13 +21,8 @@ gnulib_modules='
        dirname error extensions fopen-safer getopt gettext git-version-gen
        gnumakefile hash inttypes javacomp-script javaexec-script malloc
        mbswidth obstack quote quotearg stdbool stpcpy strerror strtoul
-       strverscmp unistd unistd-safer unlocked-io unsetenv verify xalloc
-       xalloc-die xstrndup
-'
-
-# Any gnulib files needed that are not in modules.
-gnulib_files='
-       m4/warning.m4
+       strverscmp unistd unistd-safer unlocked-io unsetenv verify
+       warnings xalloc xalloc-die xstrndup
 '
 
 # Additional xgettext options to use.  Use "\\\newline" to break lines.
index 1a52b34d60ff4bd7a69d6884afef96c5dca9f7c7..c5510f22273ed89a5ca5534e5361479d1e972abb 100644 (file)
@@ -51,23 +51,23 @@ AC_ARG_ENABLE(gcc-warnings,
  esac],
              [enableval=no])
 if test "${enableval}" = yes; then
-  gl_WARNING_CFLAGS([-Werror])
-  AC_SUBST([WERROR_CFLAGS], [$WARNING_CFLAGS])
-  WARNING_CFLAGS=
-  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])
-  gl_WARNING_CFLAGS([-Wpointer-arith])
-  gl_WARNING_CFLAGS([-Wwrite-strings])
-  AC_SUBST([WARNING_CXXFLAGS], [$WARNING_CFLAGS])
+  gl_WARN_ADD([-Werror], [WERROR_CFLAGS])
+  AC_SUBST([WERROR_CFLAGS])
+  gl_WARN_ADD([-Wall])
+  gl_WARN_ADD([-Wextra -Wno-sign-compare])
+  gl_WARN_ADD([-Wcast-align])
+  gl_WARN_ADD([-Wcast-qual])
+  gl_WARN_ADD([-Wformat])
+  gl_WARN_ADD([-Wpointer-arith])
+  gl_WARN_ADD([-Wwrite-strings])
+  AC_SUBST([WARN_CXXFLAGS], [$WARN_CFLAGS])
   # The following warnings are not suitable for C++.
-  gl_WARNING_CFLAGS([-Wbad-function-cast])
-  gl_WARNING_CFLAGS([-Wmissing-declarations])
-  gl_WARNING_CFLAGS([-Wmissing-prototypes])
-  gl_WARNING_CFLAGS([-Wshadow])
-  gl_WARNING_CFLAGS([-Wstrict-prototypes])
+  gl_WARN_ADD([-Wbad-function-cast])
+  gl_WARN_ADD([-Wmissing-declarations])
+  gl_WARN_ADD([-Wmissing-prototypes])
+  gl_WARN_ADD([-Wshadow])
+  gl_WARN_ADD([-Wstrict-prototypes])
+  AC_SUBST([WARN_CFLAGS])
   AC_DEFINE([lint], 1, [Define to 1 if the compiler is checking for lint.])
 fi
 
diff --git a/gnulib b/gnulib
index 2ec9ae244196c963a03bbcd3d85233ee78adbd44..2c64312ecca19a60629cb929c1ae759109c772b5 160000 (submodule)
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 2ec9ae244196c963a03bbcd3d85233ee78adbd44
+Subproject commit 2c64312ecca19a60629cb929c1ae759109c772b5
index 8a957c39483001c4bf4ad92c8b8edd42a2841050..4ec82d9495cf7d77e7572a828b7238779cda274c 100644 (file)
@@ -17,7 +17,7 @@
 
 include gnulib.mk
 
-AM_CFLAGS = $(WARNING_CFLAGS)
+AM_CFLAGS = $(WARN_CFLAGS)
 
 # Implementation of bitsets.
 bitsets_sources = \
index 3dfb921322fb35e4f5e798c9d01621f64257f2dc..462f3028853346345737b8eb73c6eeb7fb85dc37 100644 (file)
@@ -58,6 +58,7 @@ unistd-safer.m4
 unistd_h.m4
 unlocked-io.m4
 warning.m4
+warnings.m4
 wchar.m4
 wchar_t.m4
 wctype.m4
index 12a51b1c55669858b065ffcac5fe44a2d830f95b..6c4d5665912b8c144bf536a38a5d0894c3fb085a 100644 (file)
@@ -58,6 +58,7 @@
 /unistd_h.m4
 /unlocked-io.m4
 /warning.m4
+/warnings.m4
 /wchar.m4
 /wchar_t.m4
 /wctype.m4
index 7686d81c7942879e845a88350daf6d25a9e73d77..a5cf94ee6f3646c06427f5e884b23b3bd7767dab 100644 (file)
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-AM_CFLAGS = $(WARNING_CFLAGS) $(WERROR_CFLAGS)
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
 AM_CPPFLAGS = -I$(top_srcdir)/lib
 AM_YFLAGS = "-dv"
 
index 9fd930e57d684e7f6f73069decc7cf142963c50f..a67c4dc39c7265561f156a50c425676110950c90 100644 (file)
@@ -8,7 +8,7 @@
 CC='@CC@'
 
 # We want no optimization.
-CFLAGS='@O0CFLAGS@ @WARNING_CFLAGS@ @WERROR_CFLAGS@'
+CFLAGS='@O0CFLAGS@ @WARN_CFLAGS@ @WERROR_CFLAGS@'
 
 # We need `config.h'.
 CPPFLAGS="-I$abs_top_builddir/lib @CPPFLAGS@"
@@ -23,7 +23,7 @@ CXX='@CXX@'
 BISON_CXX_WORKS='@BISON_CXX_WORKS@'
 
 # We want no optimization with C++, too.
-CXXFLAGS='@O0CXXFLAGS@ @WARNING_CXXFLAGS@ @WERROR_CFLAGS@'
+CXXFLAGS='@O0CXXFLAGS@ @WARN_CXXFLAGS@ @WERROR_CFLAGS@'
 
 # Are special link options needed?
 LDFLAGS='@LDFLAGS@'