diff options
author | Sven Gothel <[email protected]> | 2022-08-05 09:37:35 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-08-05 09:37:35 +0200 |
commit | b5c4e7dd96c00029b15a7bc638d916abc7197d0a (patch) | |
tree | 1dbaa91bde413f43f5780296a53507d05f66c9dc /include | |
parent | d2222c7d46f30d922f211baf6c344a2bfac0ae78 (diff) |
cpp_pragma.hpp: Add PRAGMA_DISABLE_WARNING_FORMAT_NONLITERAL
Diffstat (limited to 'include')
-rw-r--r-- | include/jau/cpp_pragma.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jau/cpp_pragma.hpp b/include/jau/cpp_pragma.hpp index a55d643..510a340 100644 --- a/include/jau/cpp_pragma.hpp +++ b/include/jau/cpp_pragma.hpp @@ -43,6 +43,7 @@ namespace jau { #define PRAGMA_DISABLE_WARNING_MULTICHAR #define PRAGMA_DISABLE_WARNING_NULL_DEREFERENCE #define PRAGMA_DISABLE_WARNING_FORMAT_OVERFLOW + #define PRAGMA_DISABLE_WARNING_FORMAT_NONLITERAL #elif defined(__GNUC__) || defined(__clang__) #define DO_PRAGMA(X) _Pragma(#X) @@ -57,6 +58,7 @@ namespace jau { #define PRAGMA_DISABLE_WARNING_MULTICHAR PRAGMA_DISABLE_WARNING(-Wmultichar) #define PRAGMA_DISABLE_WARNING_NULL_DEREFERENCE PRAGMA_DISABLE_WARNING(-Wnull-dereference) #define PRAGMA_DISABLE_WARNING_FORMAT_OVERFLOW PRAGMA_DISABLE_WARNING(-Wformat-overflow) + #define PRAGMA_DISABLE_WARNING_FORMAT_NONLITERAL PRAGMA_DISABLE_WARNING(-Wformat-nonliteral) #else #define PRAGMA_DISABLE_WARNING_PUSH @@ -67,6 +69,7 @@ namespace jau { #define PRAGMA_DISABLE_WARNING_MULTICHAR #define PRAGMA_DISABLE_WARNING_NULL_DEREFERENCE #define PRAGMA_DISABLE_WARNING_FORMAT_OVERFLOW + #define PRAGMA_DISABLE_WARNING_FORMAT_NONLITERAL #endif /**@}*/ |