Merge pull request #1940 from tsuoranta/fix-gcc9

Fix for GCC 9 / Werror=deprecated-copy
This commit is contained in:
John Kessenich
2020-01-27 01:02:08 -07:00
committed by GitHub
4 changed files with 11 additions and 8 deletions

View File

@@ -101,6 +101,9 @@ if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
-Wunused-parameter -Wunused-value -Wunused-variable -Wunused-but-set-parameter -Wunused-but-set-variable -fno-exceptions)
add_compile_options(-Wno-reorder) # disable this from -Wall, since it happens all over.
add_compile_options(-fno-rtti)
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "9.0.0")
add_compile_options(-Werror=deprecated-copy)
endif()
elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
add_compile_options(-Wall -Wuninitialized -Wunused -Wunused-local-typedefs
-Wunused-parameter -Wunused-value -Wunused-variable)