diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-17 15:19:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-17 15:19:42 -0400 |
| commit | 7ec5e2bf704242ff083e258215ed0967173b969c (patch) | |
| tree | 1121416c392d2df5624c4d114e614c63893ba6d7 /lib/command_py.c | |
| parent | 7925535457e1adbaf2f064e7f3d446fb9bedc353 (diff) | |
| parent | 6dcef54cbf8e08e6b9fde2997375818f4fb9a2e8 (diff) | |
Merge pull request #4514 from opensourcerouting/warnings-20190612
*: kill more warnings
Diffstat (limited to 'lib/command_py.c')
| -rw-r--r-- | lib/command_py.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/command_py.c b/lib/command_py.c index 58b7982665..4ec116df33 100644 --- a/lib/command_py.c +++ b/lib/command_py.c @@ -22,6 +22,12 @@ * memory leak or SEGV for things that haven't been well-tested. */ +/* This file is "exempt" from having +#include "config.h" + * as the first include statement because Python.h also does environment + * setup & these trample over each other. + */ + #include <Python.h> #include "structmember.h" #include <string.h> @@ -321,6 +327,7 @@ static struct PyModuleDef pymoddef_clippy = { } while (0) #endif +#pragma GCC diagnostic ignored "-Wstrict-aliasing" PyMODINIT_FUNC command_py_init(void) { PyObject *pymod; |
