CMakeLists: Drop -Wno-unused-parameter
This commit is contained in:
parent
226e761420
commit
e8b6e76fbf
4 changed files with 18 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue