summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-13 19:34:09 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-13 19:34:09 +0200
commitff89a42a8602443b9a74be276cf3ee351b3914c7 (patch)
tree5d7e5d87eb405c1cabc217152bcb979093050bc2
parent7ceba241344b2126e5e9cb46929dbbb591f04c49 (diff)
python: make gcc shut up
-rw-r--r--Makefile.am1
-rw-r--r--src/python-systemd/_journal.c5
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8885ab83d1..be97193b45 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3419,7 +3419,6 @@ _journal_la_SOURCES = \
_journal_la_CFLAGS = \
$(AM_CFLAGS) \
-fvisibility=default \
- -Wno-missing-prototypes \
$(PYTHON_CFLAGS)
_journal_la_LDFLAGS = \
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