CMakeLists: Drop -Wno-unused-parameter

This commit is contained in:
MerryMage 2017-02-22 22:24:09 +00:00
parent 226e761420
commit e8b6e76fbf
4 changed files with 18 additions and 2 deletions

View file

@ -58,7 +58,6 @@ if (MSVC)
if (CMAKE_VS_PLATFORM_TOOLSET MATCHES "LLVM-vs[0-9]+") if (CMAKE_VS_PLATFORM_TOOLSET MATCHES "LLVM-vs[0-9]+")
list(APPEND DYNARMIC_CXX_FLAGS list(APPEND DYNARMIC_CXX_FLAGS
-Qunused-arguments -Qunused-arguments
-Wno-unused-parameter
-Wno-missing-braces -Wno-missing-braces
-Xclang -fno-operator-names) -Xclang -fno-operator-names)
endif() endif()
@ -70,7 +69,6 @@ else()
-pedantic -pedantic
-pedantic-errors -pedantic-errors
-Wfatal-errors -Wfatal-errors
-Wno-unused-parameter
-Wno-missing-braces -Wno-missing-braces
-fno-operator-names) -fno-operator-names)

View file

@ -23,6 +23,12 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(disable : 4100) #pragma warning(disable : 4100)
#endif #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/assert.h"
//#include "common/common_funcs.h" //#include "common/common_funcs.h"

View file

@ -54,6 +54,12 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(disable : 4100 4244 4245) #pragma warning(disable : 4100 4244 4245)
#endif #endif
#ifdef __GNUC__
#pragma GCC diagnostic warning "-Wunused-parameter"
#endif
#ifdef __clang__
#pragma clang diagnostic warning "-Wunused-parameter"
#endif
#include <algorithm> #include <algorithm>
//#include "common/logging/log.h" //#include "common/logging/log.h"

View file

@ -54,6 +54,12 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(disable : 4100 4244 4245) #pragma warning(disable : 4100 4244 4245)
#endif #endif
#ifdef __GNUC__
#pragma GCC diagnostic warning "-Wunused-parameter"
#endif
#ifdef __clang__
#pragma clang diagnostic warning "-Wunused-parameter"
#endif
#include <algorithm> #include <algorithm>
#include <cinttypes> #include <cinttypes>