Skip to content

Commit

Permalink
Ignore deprecated warning for syscall/set_test.c.
Browse files Browse the repository at this point in the history
This is a temporary fix for issue #11 until a more permanent fix is implemented.
  • Loading branch information
hbowden committed Sep 25, 2016
1 parent 0eb76c1 commit 5e2473b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ set(GENERATE_IGNORE_WARNINGS "-Wno-deprecated-declarations -Wno-cast-align")
set_source_files_properties(src/syscall/generate.c PROPERTIES COMPILE_FLAGS ${GENERATE_IGNORE_WARNINGS})
set_source_files_properties(src/syscall/generate-macos.c PROPERTIES COMPILE_FLAGS ${GENERATE_IGNORE_WARNINGS})

SET(SET_TEST_IGNORE_FLAGS "-Wno-deprecated-declarations -Wno-unused-function")

set_source_files_properties(src/io/io.c PROPERTIES COMPILE_FLAGS -Wno-format-nonliteral)
set_source_files_properties(src/plugins/plugin.c PROPERTIES COMPILE_FLAGS -Wno-cast-qual)
set_source_files_properties(src/syscall/set_test.c PROPERTIES COMPILE_FLAGS -Wno-unused-function)
set_source_files_properties(src/syscall/set_test.c PROPERTIES COMPILE_FLAGS ${SET_TEST_IGNORE_FLAGS})
set_source_files_properties(src/file/file.c PROPERTIES COMPILE_FLAGS -Wno-cast-qual)
set_source_files_properties(src/probe/probe-freebsd.c PROPERTIES COMPILE_FLAGS -Wno-incompatible-pointer-types-discards-qualifiers)
set_source_files_properties(src/runtime/runtime.c PROPERTIES COMPILE_FLAGS -Wno-incompatible-pointer-types-discards-qualifiers)
Expand Down Expand Up @@ -133,8 +135,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# We need this to conditionally compile macOS only sources.
add_definitions(-DMAC_OS)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Weverything -std=c11 -Wno-covered-switch-default")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -Weverything -std=c11 -Wno-covered-switch-default")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Weverything -std=c11 -Wno-covered-switch-default -Wno-switch-enum")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -Weverything -std=c11 -Wno-covered-switch-default -Wno-switch-enum")

SET(UTILS_IGNORE_FLAGS "-Wno-reserved-id-macro -Wno-unused-macros")
set_source_files_properties(src/utils/utils.c PROPERTIES COMPILE_FLAGS ${UTILS_IGNORE_FLAGS})
Expand Down Expand Up @@ -366,13 +368,15 @@ add_sanitizers(crypto-unit-test)
add_sanitizers(concurrent-unit-test)
add_sanitizers(resource-integration-test)

add_test(resource-integration-test resource-integration-test)
add_test(runtime-integration-test runtime-integration-test)
add_test(utils-unit-test utils-unit-test)
add_test(memory-unit-test memory-unit-test)
add_test(memory-intergration-test memory-intergration-test)
add_test(crypto-unit-test crypto-unit-test)
add_test(concurrent-unit-test concurrent-unit-test)

add_dependencies(check resource-integration-test)
add_dependencies(check runtime-integration-test)
add_dependencies(check utils-unit-test)
add_dependencies(check memory-intergration-test)
Expand Down

0 comments on commit 5e2473b

Please sign in to comment.