summaryrefslogtreecommitdiff
path: root/src/python-systemd
diff options
context:
space:
mode:
Diffstat (limited to 'src/python-systemd')
-rw-r--r--src/python-systemd/_journal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/python-systemd/_journal.c b/src/python-systemd/_journal.c
index eab9c2982c..d27178d666 100644
--- a/src/python-systemd/_journal.c
+++ b/src/python-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