Просмотр исходного кода

CMakeLists.txt: add -Wstrict-aliasing

ambrop7 13 лет назад
Родитель
Сommit
30ced3b8b6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -133,7 +133,7 @@ else ()
 
 
     if (NOT CMAKE_C_COMPILER_ID STREQUAL "PathScale")
     if (NOT CMAKE_C_COMPILER_ID STREQUAL "PathScale")
         add_definitions(-Werror=implicit-function-declaration -Wno-switch-enum -Wno-unused-function
         add_definitions(-Werror=implicit-function-declaration -Wno-switch-enum -Wno-unused-function
-                        -Wno-tautological-constant-out-of-range-compare)
+                        -Wno-tautological-constant-out-of-range-compare -Wstrict-aliasing)
     endif ()
     endif ()
     
     
     if (CMAKE_C_COMPILER_ID MATCHES "^Clang")
     if (CMAKE_C_COMPILER_ID MATCHES "^Clang")