commit 0b759503f547b3f3c5eeed81d5f22b9aad237345 parent a90076d26d8393790085adfd4a88650dd8b7e018 Author: [email protected] <[email protected]> Date: Mon, 17 Oct 2016 06:42:37 +0300 Ignore Wformat-security in GCC Diffstat:
M | include/kfr/cometa/string.hpp | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/kfr/cometa/string.hpp b/include/kfr/cometa/string.hpp @@ -13,10 +13,11 @@ #include <utility> CMT_PRAGMA_GNU(GCC diagnostic push) -#if CMT_HAS_WARNING("-Wformat-security") +CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wpragmas") +#if CMT_HAS_WARNING("-Wformat-security") || defined CMT_COMPILER_GCC CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wformat-security") -CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wused-but-marked-unused") #endif +CMT_PRAGMA_GNU(GCC diagnostic ignored "-Wused-but-marked-unused") namespace cometa {