mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Enable most warnings in GCC
This commit is contained in:
parent
7492f335e9
commit
5d33d9a3d9
7 changed files with 40 additions and 10 deletions
|
@ -9,7 +9,9 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||
# Set compiler options here
|
||||
|
||||
# Warnings
|
||||
add_compile_options(-Wall)
|
||||
add_compile_options(-Wno-attributes -Wno-enum-compare -Wno-invalid-offsetof)
|
||||
add_compile_options(-Wno-unknown-pragmas -Wno-unused-variable -Wno-reorder -Wno-comment)
|
||||
|
||||
elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
|
||||
# Clang 5.0 or latter is required
|
||||
|
@ -20,6 +22,7 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
|
|||
# Set compiler options here
|
||||
|
||||
add_compile_options(-ftemplate-depth=1024)
|
||||
add_compile_options(-Wunused-value -Wunused-comparison)
|
||||
if(APPLE)
|
||||
add_compile_options(-stdlib=libc++)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue