Build: Disable deprecated volatile warning

We will probably need to fix this at some stage, but for now let's just
disable the warning.
This commit is contained in:
Shannon Booth 2020-05-16 16:53:55 +12:00 committed by Andreas Kling
parent 2ffbdf5680
commit 3d153e5ed3
Notes: sideshowbarker 2024-07-19 06:37:28 +09:00

View File

@ -96,7 +96,7 @@ set(CMAKE_AR ${TOOLCHAIN_PREFIX}ar)
#FIXME: -fstack-protector
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Os -Wno-sized-deallocation -fno-sized-deallocation -fno-exceptions -fno-rtti -Wno-address-of-packed-member -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -Wno-nonnull-compare -Wno-deprecated-copy")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Os -Wno-sized-deallocation -fno-sized-deallocation -fno-exceptions -fno-rtti -Wno-address-of-packed-member -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -Wno-nonnull-compare -Wno-deprecated-copy -Wno-volatile")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG -DSANITIZE_PTRS")
add_link_options(--sysroot ${CMAKE_BINARY_DIR}/Root)