diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-20 18:44:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-20 18:47:33 +0100 |
commit | 8fca4e305f7f10cd739af8851ec341eab654bad0 (patch) | |
tree | e8a68e215a182b3031cb9b95d431835d4d29cf7e /src/shared/macro.h | |
parent | f0f2e63bb2d5cd27e6a2464ee46a670a3159c5da (diff) |
macro: add nice macro for disabling -Wnonnull temporarily
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r-- | src/shared/macro.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h index 458e0ebed3..5fd67c7aba 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -59,6 +59,10 @@ _Pragma("GCC diagnostic push"); \ _Pragma("GCC diagnostic ignored \"-Wmissing-prototypes\"") +#define DISABLE_WARNING_NONNULL \ + _Pragma("GCC diagnostic push"); \ + _Pragma("GCC diagnostic ignored \"-Wnonnull\"") + #define REENABLE_WARNING \ _Pragma("GCC diagnostic pop") |