Fix -Wshadow warnings

This commit is contained in:
Nigel Tao committed 2020-04-03 22:13:56 +11:00
1 parent 1a1f36ce13
commit 2db88dd98e
6 files changed
+142 -127

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ wuffs gen
# Compiler warning flags are discussed at
# http://fastcompression.blogspot.com/2019/01/compiler-warnings.html
WARNING_FLAGS="-Wall -Werror -Wpedantic -Wcast-qual -Wcast-align -Wpointer-arith -Wfloat-equal -Wundef -Wvla -Wconversion"
WARNING_FLAGS="-Wall -Werror -Wpedantic -Wcast-qual -Wcast-align -Wpointer-arith -Wfloat-equal -Wundef -Wvla -Wconversion -Wshadow"
echo "Checking snapshot compiles cleanly (as C)"
$CC -c $WARNING_FLAGS -std=c99 -Wc++-compat \