mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
disable mismatched new-delete warning from GCC 11.1 (false positives)
This commit is contained in:
committed by
Baldur Karlsson
parent
0293487eb8
commit
951e678de1
@@ -405,6 +405,12 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
|
||||
list(APPEND warning_flags -Wimplicit-fallthrough=2)
|
||||
endif()
|
||||
|
||||
# False positives due to function inlining decisions
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103993
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.0.9)
|
||||
list(APPEND warning_flags -Wno-mismatched-new-delete)
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11.9)
|
||||
list(APPEND warning_flags -Wno-unused-value)
|
||||
|
||||
Reference in New Issue
Block a user