Skip to content

Commit

Permalink
BUILD: Add warning flags new in gcc 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed May 5, 2019
1 parent faf1dcd commit 142c696
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")

# Extra warnings valid for C++
set_check_compiler_flag_cxx("-Wnon-virtual-dtor")
set_check_compiler_flag_cxx("-Wdeprecated-copy")
set_check_compiler_flag_cxx("-Wdeprecated-copy-dtor")
set_check_compiler_flag_cxx("-Wredundant-move")

# Disable warnings about hiding virtual functions from a base class. We don't care
set_check_compiler_flag_cxx("-Woverloaded-virtual" "-Wno-overloaded-virtual")
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ if test "x$with_warnings" = "xyes"; then

dnl Extra warnings valid for C++
AX_CHECK_COMPILER_FLAGS_VAR([C++], [WARN], [-Wnon-virtual-dtor])
AX_CHECK_COMPILER_FLAGS_VAR([C++], [WARN], [-Wdeprecated-copy])
AX_CHECK_COMPILER_FLAGS_VAR([C++], [WARN], [-Wdeprecated-copy-dtor])
AX_CHECK_COMPILER_FLAGS_VAR([C++], [WARN], [-Wredundant-move])
fi

dnl Disable warnings about hiding virtual functions from a base class. We don't care
Expand Down

0 comments on commit 142c696

Please sign in to comment.