Commit 7eb43ee3 authored by Francois Keith's avatar Francois Keith
Browse files

Disable -Wstrict-aliasing because of Py_RETURN_TRUE/FALSE.

parent c55d8352
......@@ -26,6 +26,12 @@
#include "convert-dg-to-py.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"
using dynamicgraph::Entity;
using dynamicgraph::SignalBase;
using dynamicgraph::command::Command;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment