Hide warnings

This commit is contained in:
Andrew Hyatt 2016-12-09 19:13:03 -08:00
parent fe93b20a38
commit a96929297f
2 changed files with 35 additions and 1 deletions

View File

@ -14,6 +14,22 @@ add_definitions(-DNDEBUG -DHAVE_NDBM_H -DHAVE_SEM_OPEN -DOBJC2RUNTIME)
add_definitions(-DVERSION="2.6" -DPREFIX="/System/Library/Frameworks/Python.framework/Versions/2.6" -DSUFFIX="${BITS}")
add_definitions(-DPLATFORM="darwin")
add_definitions(
-Wno-parentheses
-Wno-implicit-function-declaration
-Wno-logical-not-parentheses
-Wno-tautological-constant-out-of-range-compare
-Wno-absolute-value
-Wno-pointer-sign
-Wno-format-extra-args
-Wno-tautological-pointer-compare
-Wno-incompatible-pointer-types-discards-qualifiers
-Wno-deprecated-declarations
-Wno-shift-negative-value
-Wno-macro-redefined
-Wno-invalid-source-encoding
)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -fwrapv -fPIC -ggdb -O0")
set(CMAKE_SHARED_LINKER_FLAGS "-nodefaultlibs -nostdlib -fPIC -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map")
set(CMAKE_EXE_LINKER_FLAGS "-nodefaultlibs -nostdlib -fPIC -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map")

View File

@ -15,6 +15,24 @@ add_definitions(-DNDEBUG -DHAVE_NDBM_H -DHAVE_SEM_OPEN -DOBJC2RUNTIME)
add_definitions(-DVERSION="2.7" -DPREFIX="/System/Library/Frameworks/Python.framework/Versions/2.7" -DSUFFIX="${BITS}")
add_definitions(-DPLATFORM="darwin")
add_definitions(
-Wno-parentheses
-Wno-implicit-function-declaration
-Wno-logical-not-parentheses
-Wno-tautological-constant-out-of-range-compare
-Wno-absolute-value
-Wno-pointer-sign
-Wno-format-extra-args
-Wno-tautological-pointer-compare
-Wno-incompatible-pointer-types-discards-qualifiers
-Wno-deprecated-declarations
-Wno-shift-negative-value
-Wno-macro-redefined
-Wno-invalid-source-encoding
-Wno-tautological-compare
-Wno-empty-body
)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -fwrapv -fPIC -ggdb -O0")
set(CMAKE_SHARED_LINKER_FLAGS "-nodefaultlibs -nostdlib -fPIC -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map")
set(CMAKE_EXE_LINKER_FLAGS "-nodefaultlibs -nostdlib -fPIC -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map")