]> git.saurik.com Git - bison.git/commit - src/scan-gram.l
Don't use IF_LINT in Bison sources.
authorJoel E. Denny <joeldenny@joeldenny.org>
Sat, 14 May 2011 20:16:26 +0000 (16:16 -0400)
committerJoel E. Denny <joeldenny@joeldenny.org>
Sat, 14 May 2011 21:00:04 +0000 (17:00 -0400)
commit84f6a6ca7051c44d5f10aeb38d92b30c1ef190bd
tree1b1a17b3a0fb25cbdb49f1266a1377854719f7dc
parent1f36f54446248b8984b9c378b0c756a6b51b34cb
Don't use IF_LINT in Bison sources.

It creates unnecessary differences between the sources that Bison
maintainers build and test (given that maintainers normally
configure with --enable-gcc-warnings) and the sources that Bison
users build.  Instead, use PACIFY_CC, which doesn't.  This change
fixes compiler warnings reported by Tys Lefering at
<http://lists.gnu.org/archive/html/bison-patches/2011-05/msg00004.html>.
* configure.ac: Don't AC_DEFINE lint regardless of the configure
options.  This change affects imported gnulib sources, where
IF_LINT still appears and depends on lint.
* src/scan-gram.l, src/scan-skel.l: Replace uses of IF_LINT with
PACIFY_CC.
* src/system.h (IF_LINT): Remove cpp macro.
(PACIFY_CC): New cpp macro.
(cherry picked from commit 77bb73e7af76ef5180b22c3b8355aaff1f498f68)

Conflicts:

src/scan-gram.l
ChangeLog
configure.ac
src/scan-gram.l
src/scan-skel.l
src/system.h