mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 06:13:02 +00:00
tests: add -pedantic for --enable-gcc-warnings.
This should help to avoid some portability problems. For example,
it would have revealed the empty unions fixed by the last patch
* configure.ac (WARN_CFLAGS_TESTS, WARN_CXXFLAGS_TEST): Implement.
* tests/synclines.at (AT_TEST_SYNCLINE): Avoid -pedantic warning
about an empty translation unit.
(cherry picked from commit 5422d56a71)
This commit is contained in:
@@ -88,6 +88,7 @@ m4_define([AT_TEST_SYNCLINE],
|
||||
|
||||
AT_DATA([syncline.c],
|
||||
[[#error "1"
|
||||
int i; // avoids -pedantic warning about an empty translation unit
|
||||
]])
|
||||
|
||||
AT_SYNCLINES_COMPILE([syncline.c])
|
||||
|
||||
Reference in New Issue
Block a user