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]+")
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)

View file

@ -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"

View file

@ -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 <algorithm>
//#include "common/logging/log.h"

View file

@ -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 <algorithm>
#include <cinttypes>