From: khizmax Date: Tue, 22 Dec 2015 20:06:39 +0000 (+0300) Subject: Disabled -Wunused-local-typedefs for CMake build X-Git-Tag: v2.1.0~17 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4da032c9795c0f16c39b21a0ad739ca327efdf75;p=libcds.git Disabled -Wunused-local-typedefs for CMake build --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 320d486e..89957832 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,9 @@ message("Build type -- ${CMAKE_BUILD_TYPE}") if(CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -pedantic -fno-strict-aliasing") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -fno-strict-aliasing") +# gcc 4.8: disable noise -Wunused-local-typedefs + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedefs -Wno-unused-parameter") endif() set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")