diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-20 18:35:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-20 18:47:33 +0100 |
commit | f0f2e63bb2d5cd27e6a2464ee46a670a3159c5da (patch) | |
tree | 6bb637393bc095a041ec89cc488a21889e652a45 /src/python-systemd/_reader.c | |
parent | bcfce235a3d757f0ec3b0c01e8583382db1adfe2 (diff) |
macro: introduce nice macro for disabling -Wmissing-prototypes warnigs
Diffstat (limited to 'src/python-systemd/_reader.c')
-rw-r--r-- | src/python-systemd/_reader.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |