python: make gcc shut up

This commit is contained in:
Lennart Poettering
2012-09-13 19:34:09 +02:00
parent 7ceba24134
commit ff89a42a86
2 changed files with 5 additions and 1 deletions
+5
View 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