Fix -Wshadow warnings

This commit is contained in:
Victor Zverovich
2014-12-09 07:45:54 -08:00
parent b49a1b4a52
commit f9fc8fd09d
3 changed files with 24 additions and 21 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ endif ()
add_library(format ${shared} ${FMT_SOURCES})
if (CMAKE_COMPILER_IS_GNUCXX)
set_target_properties(format PROPERTIES COMPILE_FLAGS
"-Wall -Wextra -pedantic")
"-Wall -Wextra -Wshadow -pedantic")
endif ()
if (CPP11_FLAG AND FMT_EXTRA_TESTS)
set_target_properties(format PROPERTIES COMPILE_FLAGS ${CPP11_FLAG})