summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-13 19:34:09 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-07-05 14:19:14 -0400
commit059247a62f40c7e045181d41f0e28f5d83a47436 (patch)
tree6afb8725f8c2a6d7218c2741334e0ad4e78dcd8e /systemd
parentda42130ac5906d8d5d5ed315aeca72e4bbfb8201 (diff)
downloadpython-systemd-059247a62f40c7e045181d41f0e28f5d83a47436.tar.gz
python: make gcc shut up
Diffstat (limited to 'systemd')
-rw-r--r--systemd/_journal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/systemd/_journal.c b/systemd/_journal.c
index eab9c29..d27178d 100644
--- a/systemd/_journal.c
+++ b/systemd/_journal.c
@@ -113,6 +113,9 @@ static PyMethodDef methods[] = {
{ NULL, NULL, 0, NULL } /* Sentinel */
};
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmissing-prototypes"
+
#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC init_journal(void) {
@@ -133,4 +136,6 @@ PyMODINIT_FUNC PyInit__journal(void) {
return PyModule_Create(&module);
}
+#pragma GCC diagnostic pop
+
#endif