mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-18 02:01:33 +00:00
Suppress GCC warnings about variables with C++20 keyword names
"requires" is a keyword in C++20, so newer g++ complains about them. We currently use C++98, so who cares
This commit is contained in:
parent
d6c0bb2003
commit
7804daebac
1 changed files with 7 additions and 0 deletions
|
@ -346,6 +346,13 @@ if(D3_COMPILER_IS_GCC_OR_CLANG)
|
|||
add_compile_options(-Wno-class-memaccess)
|
||||
endif()
|
||||
|
||||
# ignore warnings about variables named "requires" for now (in C++20 it's a keyword,
|
||||
# but currently we don't even use C++11 features)
|
||||
CHECK_CXX_COMPILER_FLAG("-Wno-c++20-compat" cxx_has_Wno-cpp20-compat)
|
||||
if(cxx_has_Wno-cpp20-compat)
|
||||
add_compile_options(-Wno-c++20-compat)
|
||||
endif()
|
||||
|
||||
if(AROS)
|
||||
set(CMAKE_SHARED_LIBRARY_SUFFIX ".aros-${cpu}")
|
||||
add_definitions(-DIOAPI_NO_64)
|
||||
|
|
Loading…
Reference in a new issue