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:
Matthew Barr
2017-09-18 15:07:53 +10:00
parent ae918116ab
commit 1a81263744
2 changed files with 7 additions and 1 deletions

View File

@@ -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")