Commit 76c24eae authored by Nicolas Carion's avatar Nicolas Carion

small fix for warning handling

parent 6c8f7cb7
......@@ -21,6 +21,7 @@ endif()
if (BUILD_FUZZING)
SET(CMAKE_CXX_FLAGS "${KDENLIVE_CXX_FLAGS} -fsanitize=fuzzer-no-link,address")
endif()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option")
# To be switched on when releasing.
option(RELEASE_BUILD "Remove Git revision from program version" ON)
......@@ -166,7 +167,7 @@ endif()
if (BUILD_FUZZING)
message(STATUS "Building fuzzing")
set(CMAKE_CXX_COMPILER /usr/bin/clang++)
set(CMAKE_CXX_FLAGS "${KDENLIVE_CXX_FLAGS} -fsanitize=fuzzer-no-link,address")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDENLIVE_CXX_FLAGS} -fsanitize=fuzzer-no-link,address")
add_subdirectory(fuzzer)
endif()
......@@ -8,6 +8,11 @@
*/
#if defined __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
# pragma GCC diagnostic ignored "-Wsuggest-override"
#endif
......@@ -9344,3 +9349,7 @@ namespace fakeit {
#define When(call) \
When(call)
#if defined __GNUC__
# pragma GCC diagnostic pop
#endif
......@@ -14,6 +14,7 @@
#if defined __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wcast-function-type"
# pragma GCC diagnostic ignored "-Wsuggest-override"
#endif
#include <functional>
......@@ -9381,7 +9382,9 @@ namespace fakeit {
//# else
//# pragma clang diagnostic pop
//# endif
#elif defined __GNUC__
#endif
#if defined __GNUC__
# pragma GCC diagnostic pop
#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