diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2022-07-31 12:56:59 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2022-07-31 12:56:59 +0200 |
commit | cf686be382ae70e69fc147768132e9334dc27814 (patch) | |
tree | 46bd851a25b40ef41eb7f514a6aa2cbf36c0b3f4 /configure.ac | |
parent | c70b68c60d821f200bd3640b236437eae7085b76 (diff) | |
download | bison-cf686be382ae70e69fc147768132e9334dc27814.tar.gz |
tests: avoid useless variables
Reported by clang's -Wunused-but-set-variable warning.
* configure.ac (warn_common): Add -Wunused-but-set-variable.
* tests/cxx-type.at: Don't emit location track code when we don't use
locations.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2f848879..08ea7cdf 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,7 @@ if test "$enable_gcc_warnings" = yes; then -Wformat -Wimplicit-fallthrough -Wmismatched-dealloc -Wnull-dereference -Wno-sign-compare -Wno-tautological-constant-out-of-range-compare -Wpointer-arith -Wshadow -Wstrict-aliasing + -Wunused-but-set-variable -Wwrite-strings -wr188 -wr2259 -wr3179' warn_c='-Wbad-function-cast |