From f0f2e63bb2d5cd27e6a2464ee46a670a3159c5da Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 20 Feb 2014 18:35:03 +0100 Subject: macro: introduce nice macro for disabling -Wmissing-prototypes warnigs --- src/shared/macro.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared') diff --git a/src/shared/macro.h b/src/shared/macro.h index 1941f0e651..458e0ebed3 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -55,6 +55,10 @@ _Pragma("GCC diagnostic push"); \ _Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\"") +#define DISABLE_WARNING_MISSING_PROTOTYPES \ + _Pragma("GCC diagnostic push"); \ + _Pragma("GCC diagnostic ignored \"-Wmissing-prototypes\"") + #define REENABLE_WARNING \ _Pragma("GCC diagnostic pop") -- cgit v1.2.3-54-g00ecf