diff options
author | Ambroz Bizjak <ambrop7@gmail.com> | 2014-11-12 23:31:31 +0300 |
---|---|---|
committer | Ambroz Bizjak <ambrop7@gmail.com> | 2014-11-12 23:31:31 +0300 |
commit | 5033d556c2c7271df05ea185ade003fc94f08238 (patch) | |
tree | 4d5cac63481003623be8ad315ca9d4cbdac5698e /CMakeLists.txt | |
parent | 57b72caa55c80bd6dcea105e45ee72329d6cbb39 (diff) |
Build with -Wshadow.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ebdc0d7..fcfe181 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,7 +130,7 @@ endif () if (MSVC) add_definitions(/TP -D_CRT_SECURE_NO_WARNINGS /wd4065 /wd4018 /wd4533 /wd4244 /wd4102) else () - add_definitions(-std=gnu99 -Wall -Wno-unused-value -Wno-parentheses -Wno-switch -Wredundant-decls) + add_definitions(-std=gnu99 -Wall -Wno-unused-value -Wno-parentheses -Wno-switch -Wredundant-decls -Wshadow) if (NOT CMAKE_C_COMPILER_ID STREQUAL "PathScale") add_definitions(-Werror=implicit-function-declaration -Wno-switch-enum -Wno-unused-function |