mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-02 21:30:40 +00:00
Merge pull request #132 from mihaip/upstream-volatile
Suppress Clang warnings about `volatile` being deprecated
This commit is contained in:
commit
c0a06a88c7
@ -5,4 +5,10 @@ file(GLOB SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/*.h"
|
||||
)
|
||||
|
||||
# The use of volatile is deprecated, but we still need it to avoid function
|
||||
# parameters being clobbered when using setjmp/longjmp.
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
add_compile_options(-Wno-deprecated-volatile)
|
||||
endif()
|
||||
|
||||
add_library(cpu_ppc OBJECT ${SOURCES})
|
||||
|
Loading…
Reference in New Issue
Block a user