From e8b6e76fbfeebf8f1d8540911f95af1f8c420fff Mon Sep 17 00:00:00 2001 From: MerryMage Date: Wed, 22 Feb 2017 22:24:09 +0000 Subject: [PATCH] CMakeLists: Drop -Wno-unused-parameter --- CMakeLists.txt | 2 -- tests/skyeye_interpreter/skyeye_common/vfp/vfp.cpp | 6 ++++++ tests/skyeye_interpreter/skyeye_common/vfp/vfpdouble.cpp | 6 ++++++ tests/skyeye_interpreter/skyeye_common/vfp/vfpsingle.cpp | 6 ++++++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5be29e89..2b3b398a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,6 @@ if (MSVC) if (CMAKE_VS_PLATFORM_TOOLSET MATCHES "LLVM-vs[0-9]+") list(APPEND DYNARMIC_CXX_FLAGS -Qunused-arguments - -Wno-unused-parameter -Wno-missing-braces -Xclang -fno-operator-names) endif() @@ -70,7 +69,6 @@ else() -pedantic -pedantic-errors -Wfatal-errors - -Wno-unused-parameter -Wno-missing-braces -fno-operator-names) diff --git a/tests/skyeye_interpreter/skyeye_common/vfp/vfp.cpp b/tests/skyeye_interpreter/skyeye_common/vfp/vfp.cpp index aa497959..a6b68d1b 100644 --- a/tests/skyeye_interpreter/skyeye_common/vfp/vfp.cpp +++ b/tests/skyeye_interpreter/skyeye_common/vfp/vfp.cpp @@ -23,6 +23,12 @@ #ifdef _MSC_VER #pragma warning(disable : 4100) #endif +#ifdef __GNUC__ +#pragma GCC diagnostic warning "-Wunused-parameter" +#endif +#ifdef __clang__ +#pragma clang diagnostic warning "-Wunused-parameter" +#endif #include "common/assert.h" //#include "common/common_funcs.h" diff --git a/tests/skyeye_interpreter/skyeye_common/vfp/vfpdouble.cpp b/tests/skyeye_interpreter/skyeye_common/vfp/vfpdouble.cpp index 79df26c7..109a254f 100644 --- a/tests/skyeye_interpreter/skyeye_common/vfp/vfpdouble.cpp +++ b/tests/skyeye_interpreter/skyeye_common/vfp/vfpdouble.cpp @@ -54,6 +54,12 @@ #ifdef _MSC_VER #pragma warning(disable : 4100 4244 4245) #endif +#ifdef __GNUC__ +#pragma GCC diagnostic warning "-Wunused-parameter" +#endif +#ifdef __clang__ +#pragma clang diagnostic warning "-Wunused-parameter" +#endif #include //#include "common/logging/log.h" diff --git a/tests/skyeye_interpreter/skyeye_common/vfp/vfpsingle.cpp b/tests/skyeye_interpreter/skyeye_common/vfp/vfpsingle.cpp index c174593a..52de1e04 100644 --- a/tests/skyeye_interpreter/skyeye_common/vfp/vfpsingle.cpp +++ b/tests/skyeye_interpreter/skyeye_common/vfp/vfpsingle.cpp @@ -54,6 +54,12 @@ #ifdef _MSC_VER #pragma warning(disable : 4100 4244 4245) #endif +#ifdef __GNUC__ +#pragma GCC diagnostic warning "-Wunused-parameter" +#endif +#ifdef __clang__ +#pragma clang diagnostic warning "-Wunused-parameter" +#endif #include #include