Compile with -Wstrict-aliasing=2

This commit is contained in:
Iliyas Jorio 2022-02-27 19:49:23 +01:00
parent 018ab2d404
commit 0581b24162
1 changed files with 2 additions and 1 deletions

View File

@ -148,11 +148,12 @@ if(MSVC)
) )
else() else()
target_compile_options(${PROJECT_NAME} PRIVATE target_compile_options(${PROJECT_NAME} PRIVATE
-fexceptions
-Wall -Wall
-Wextra -Wextra
-Wshadow -Wshadow
-Wno-multichar -Wno-multichar
-Wno-unknown-pragmas -Wno-unknown-pragmas
-fexceptions -Wstrict-aliasing=2
) )
endif() endif()