chiark / gitweb /
systemd-python: small cleanups
[elogind.git] / src / python-systemd / _journal.c
index eab9c2982ceeafee146e85cb31914096b8609e0c..2de0d4f91d5f5eb37511e08810c2eaf2a717d4d5 100644 (file)
@@ -3,7 +3,7 @@
 /***
   This file is part of systemd.
 
-  Copyright 2012 David Strauss
+  Copyright 2012 David Strauss <david@davidstrauss.net>
 
   systemd is free software; you can redistribute it and/or modify it
   under the terms of the GNU Lesser General Public License as published by
@@ -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) {
@@ -125,7 +128,7 @@ static struct PyModuleDef module = {
         PyModuleDef_HEAD_INIT,
         "_journal", /* name of module */
         NULL, /* module documentation, may be NULL */
-        0, /* size of per-interpreter state of the module */
+        -1, /* size of per-interpreter state of the module */
         methods
 };
 
@@ -134,3 +137,5 @@ PyMODINIT_FUNC PyInit__journal(void) {
 }
 
 #endif
+
+#pragma GCC diagnostic pop