Skip to content

Commit

Permalink
Remove warning flags specific for GCC 14+ due to false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Jun 23, 2024
1 parent ef2dcda commit 76f254a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmake/CompilerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,4 @@ if( CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
# Extra warning flags for GCC 7.0+
target_compile_options( ${LIB_TARGET} PRIVATE -Wduplicated-branches -Wrestrict )
endif()
if ( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14.0 )
# Extra warning flags for GCC 14.0+
target_compile_options( ${LIB_TARGET} PRIVATE -Wnrvo )
endif()
endif()

0 comments on commit 76f254a

Please sign in to comment.