Commit 30370ae5 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4871] remove -Wcast-align on darwin

git-svn-id: file:///svn/toku/tokudb@44440 c7de825b-a66e-492c-adef-691d508d4ae1
parent 93f0b786
...@@ -119,7 +119,6 @@ else() ...@@ -119,7 +119,6 @@ else()
## set gcc warnings ## set gcc warnings
set(CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") set(CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")
set(WARN_CFLAGS set(WARN_CFLAGS
-Wcast-align
-Wbad-function-cast -Wbad-function-cast
-Wno-missing-noreturn -Wno-missing-noreturn
-Wstrict-prototypes -Wstrict-prototypes
...@@ -129,9 +128,9 @@ else() ...@@ -129,9 +128,9 @@ else()
-Wmissing-format-attribute -Wmissing-format-attribute
) )
if (CMAKE_SYSTEM_NAME STREQUAL Darwin) if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
message(WARNING "Disabling -Wshadow on osx. TODO: fix shadowed declarations and re-enable it.") message(WARNING "Disabling -Wcast-align and -Wshadow on osx. TODO: fix casting and shadowed declarations and re-enable them.")
else () else ()
list(APPEND WARN_CFLAGS -Wshadow) list(APPEND WARN_CFLAGS -Wcast-align -Wshadow)
endif () endif ()
endif() endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment