From 0581b241624d16c453e0afab57a379b443229260 Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Sun, 27 Feb 2022 19:49:23 +0100 Subject: [PATCH] Compile with -Wstrict-aliasing=2 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 169767e..3fc9b57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,11 +148,12 @@ if(MSVC) ) else() target_compile_options(${PROJECT_NAME} PRIVATE + -fexceptions -Wall -Wextra -Wshadow -Wno-multichar -Wno-unknown-pragmas - -fexceptions + -Wstrict-aliasing=2 ) endif()