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/python-systemd/_reader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/python-systemd/_reader.c') diff --git a/src/python-systemd/_reader.c b/src/python-systemd/_reader.c index ee25c49741..224a9169e6 100644 --- a/src/python-systemd/_reader.c +++ b/src/python-systemd/_reader.c @@ -1046,8 +1046,7 @@ static PyModuleDef module = { static bool initialized = false; #endif -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmissing-prototypes" +DISABLE_WARNING_MISSING_PROTOTYPES; PyMODINIT_FUNC #if PY_MAJOR_VERSION >= 3 @@ -1110,4 +1109,4 @@ init_reader(void) #endif } -#pragma GCC diagnostic pop +REENABLE_WARNING; -- cgit v1.2.3-54-g00ecf