summaryrefslogtreecommitdiff
path: root/tests/torture.at
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2015-01-22 19:03:41 +0100
committerAkim Demaille <akim@lrde.epita.fr>2015-01-23 07:52:50 +0100
commita2c525b34c24e790e37d8735c28c708c17cf9f57 (patch)
treef72782057073ff276927f6f09c9c426ed7866e1a /tests/torture.at
parent658b189348746aa79fba777f021bd7dc13eeabd7 (diff)
downloadbison-a2c525b34c24e790e37d8735c28c708c17cf9f57.tar.gz
build: re-enable compiler warnings, and fix them
There are warnings (-Wextra) in generated C++ code: ltlparse.cc: In member function 'ltlyy::parser::symbol_number_type ltlyy::parser::by_state::type_get() const': ltlparse.cc:452:33: warning: enumeral and non-enumeral type in conditional expression return state == empty_state ? empty_symbol : yystos_[state]; Reported by Alexandre Duret-Lutz. It turns out that -Wall and -Wextra were disabled because of a stupid typo. * configure.ac: Fix the stupid typo. * data/lalr1.cc, src/AnnotationList.c, src/InadequacyList.c, * src/ielr.c, src/print.c, src/scan-code.l, src/symlist.c, * src/symlist.h, src/symtab.c, src/tables.c, tests/actions.at, * tests/calc.at, tests/cxx-type.at, tests/glr-regression.at, * tests/named-refs.at, tests/torture.at: Fix warnings, mostly issues about variables used only with assertions, which are disabled with -DNDEBUG.
Diffstat (limited to 'tests/torture.at')
-rw-r--r--tests/torture.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/torture.at b/tests/torture.at
index ad9bf9b2..d6b2806a 100644
--- a/tests/torture.at
+++ b/tests/torture.at
@@ -403,7 +403,7 @@ get_args (int argc, const char **argv)
{
int res;
char *endp;
- assert (argc == 2);
+ assert (argc == 2); (void) argc;
res = strtol (argv[1], &endp, 10);
assert (argv[1] != endp);
assert (0 <= res);