mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 11:44:28 +03:00
Check for unused typedef warning and disable
This affects older versions of Boost (1.58), and we were only disabling the warning for g++. Fixes #62.
This commit is contained in:
@@ -20,6 +20,10 @@ if(CXX_WUNUSED_VARIABLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-variable")
|
||||
endif()
|
||||
|
||||
if (CXX_UNUSED_LOCAL_TYPEDEFS)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedefs")
|
||||
endif()
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
# spurious warnings?
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-array-bounds")
|
||||
|
Reference in New Issue
Block a user