diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-20 18:35:03 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-07-05 14:19:21 -0400 |
commit | ce4e46ae66761931f386cfff0065ad056c528717 (patch) | |
tree | 50f309288defc8ba3216aa8824bfecb0c3234f00 /systemd/_reader.c | |
parent | 5e1d42a18032bff6863784d18671a3cb65cae0c3 (diff) | |
download | python-systemd-ce4e46ae66761931f386cfff0065ad056c528717.tar.gz |
macro: introduce nice macro for disabling -Wmissing-prototypes warnigs
Diffstat (limited to 'systemd/_reader.c')
-rw-r--r-- | systemd/_reader.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/systemd/_reader.c b/systemd/_reader.c index ee25c49..224a916 100644 --- a/systemd/_reader.c +++ b/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; |