diff --git a/Makefile b/Makefile index fb63d45ce..b22dbf7e2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CXXFLAGS=-Wall -Wextra -pedantic -Wno-long-long -Wfloat-equal -Wcast-qual -g -D_GLIBCXX_DEBUG +CXXFLAGS=-Wall -Wextra -Wshadow -pedantic -Wno-long-long -Wfloat-equal -Wcast-qual -g -D_GLIBCXX_DEBUG CXX=g++ BIN=${DESTDIR}/usr/bin diff --git a/tools/dmake.cpp b/tools/dmake.cpp index f674c9817..0f6fdad57 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -148,7 +148,7 @@ int main(int argc, char **argv) // TODO: add more compiler warnings. // -Wsign-conversion : generates too many compiler warnings currently // -Wlogical-op : doesn't work on older GCC - fout << "CXXFLAGS=-Wall -Wextra -pedantic -Wno-long-long -Wfloat-equal -Wcast-qual "; + fout << "CXXFLAGS=-Wall -Wextra -Wshadow -pedantic -Wno-long-long -Wfloat-equal -Wcast-qual "; fout << (release ? "-O2 -DNDEBUG" : "-g -D_GLIBCXX_DEBUG") << "\n"; fout << "CXX=g++\n"; fout << "BIN=${DESTDIR}/usr/bin\n\n";