fix gcc/clang build by adding -fpermssive and -Wno-address-of-temporary

This commit is contained in:
withmorten
2021-02-02 14:02:42 +01:00
parent 3f60034c39
commit ef28d12d85
2 changed files with 9 additions and 0 deletions

View File

@ -102,6 +102,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang
if (NOT LIBRW_PLATFORM_PS2)
target_compile_options(${EXECUTABLE}
PRIVATE
-fpermissive # for CVECTORHACK
-Wno-address-of-temporary # for CVECTORHACK
-Wextra
-Wdouble-promotion
-Wpedantic