Skip to content
Snippets Groups Projects
Commit 7eb43ee3 authored by Francois Keith's avatar Francois Keith
Browse files

Disable -Wstrict-aliasing because of Py_RETURN_TRUE/FALSE.

parent c55d8352
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,12 @@ ...@@ -26,6 +26,12 @@
#include "convert-dg-to-py.hh" #include "convert-dg-to-py.hh"
#include "exception.hh" #include "exception.hh"
// Ignore "dereferencing type-punned pointer will break strict-aliasing rules"
// warnings on gcc caused by Py_RETURN_TRUE and Py_RETURN_FALSE.
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif
using dynamicgraph::Entity; using dynamicgraph::Entity;
using dynamicgraph::SignalBase; using dynamicgraph::SignalBase;
using dynamicgraph::command::Command; using dynamicgraph::command::Command;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment