diff --git a/CMakeLists.txt b/CMakeLists.txt index bfcf315..59f5095 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,17 +109,10 @@ target_compile_options(Common INTERFACE $<$:$> $<$:$> # $<$:$> # maybe too many false positives - $<$:-Wno-missing-braces> - $<$:-Wno-deprecated-declarations> - $<$:-Wno-ignored-attributes> - $<$:-Wno-unused-local-typedefs> # Clang $<$:$> $<$:$> $<$:$> # see above, does better job than gcc - $<$:-Wno-missing-braces> - $<$:-Wno-deprecated-declarations> - $<$:-Wno-ignored-attributes> # MSVC $<$:/bigobj> $<$:/wd4003> diff --git a/inc/core/application.hpp b/inc/core/application.hpp index 9ce1e91..f657105 100644 --- a/inc/core/application.hpp +++ b/inc/core/application.hpp @@ -8,7 +8,11 @@ #include "gearshifft_version.hpp" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wold-style-cast" +#pragma GCC diagnostic ignored "-Wunused-parameter" #include +#pragma GCC diagnostic pop #include #include diff --git a/inc/core/benchmark_data.hpp b/inc/core/benchmark_data.hpp index 7f0d29f..54f7c19 100644 --- a/inc/core/benchmark_data.hpp +++ b/inc/core/benchmark_data.hpp @@ -4,10 +4,15 @@ #include "types.hpp" // http://www.boost.org/doc/libs/1_56_0/doc/html/align/tutorial.html + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wold-style-cast" +#pragma GCC diagnostic ignored "-Wunused-parameter" #include #include #include #include +#pragma GCC diagnostic pop #include #include diff --git a/inc/core/benchmark_executor.hpp b/inc/core/benchmark_executor.hpp index 4682983..0ce8182 100644 --- a/inc/core/benchmark_executor.hpp +++ b/inc/core/benchmark_executor.hpp @@ -7,7 +7,11 @@ #include "benchmark_data.hpp" #include "types.hpp" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wold-style-cast" +#pragma GCC diagnostic ignored "-Wunused-parameter" #include // Single-header usage variant +#pragma GCC diagnostic pop #include #include diff --git a/inc/core/options.hpp b/inc/core/options.hpp index 64e8b2c..db352ec 100644 --- a/inc/core/options.hpp +++ b/inc/core/options.hpp @@ -2,8 +2,11 @@ #define OPTIONS_HPP_ #include "types.hpp" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wold-style-cast" #include #include +#pragma GCC diagnostic pop #include #include