diff options
author | Joel E. Denny <jdenny@clemson.edu> | 2009-12-16 13:19:19 -0500 |
---|---|---|
committer | Joel E. Denny <jdenny@clemson.edu> | 2009-12-16 13:20:49 -0500 |
commit | a603c6e0bb8b9e79d4136ee0fd0d1bf6a7d010ef (patch) | |
tree | 12d11f37d6b3f3715321bf59e80a7c89fc0a8f55 /data | |
parent | 19750d310c1f21b72fc26d0b8905fac08d175130 (diff) | |
download | bison-a603c6e0bb8b9e79d4136ee0fd0d1bf6a7d010ef.tar.gz |
Add gcc's -Wundef to test suite and fix another warning from it.
* NEWS (2.4.2): Update description of -Wundef fix.
* configure.ac (WARN_CXXFLAGS_TEST): New substitution.
(WARN_CFLAGS_TEST): New substitution.
* data/glr.c: Avoid warning about __STRICT_ANSI__.
* tests/atlocal.in (CFLAGS): Use WARN_CFLAGS_TEST instead of
WARN_CFLAGS.
(NO_WERROR_CFLAGS): Likewise.
(CXXFLAGS): Use WARN_CXXFLAGS_TEST instead of WARN_CXXFLAGS.
Diffstat (limited to 'data')
-rw-r--r-- | data/glr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -318,7 +318,8 @@ b4_percent_code_get[]dnl #ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if (! defined __GNUC__ || __GNUC__ < 2 \ - || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__) + || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) \ + || (defined __STRICT_ANSI__ && __STRICT_ANSI__)) # define __attribute__(Spec) /* empty */ # endif #endif |