python: make gcc shut up
authorLennart Poettering <lennart@poettering.net>
Thu, 13 Sep 2012 17:34:09 +0000 (19:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 13 Sep 2012 17:34:09 +0000 (19:34 +0200)
Makefile.am
src/python-systemd/_journal.c

index 8885ab8..be97193 100644 (file)
@@ -3419,7 +3419,6 @@ _journal_la_SOURCES = \
 _journal_la_CFLAGS = \
        $(AM_CFLAGS) \
         -fvisibility=default \
-       -Wno-missing-prototypes \
        $(PYTHON_CFLAGS)
 
 _journal_la_LDFLAGS = \
index eab9c29..d27178d 100644 (file)
@@ -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