Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph-python
Commits
7eb43ee3
Commit
7eb43ee3
authored
Feb 28, 2014
by
Francois Keith
Browse files
Disable -Wstrict-aliasing because of Py_RETURN_TRUE/FALSE.
parent
c55d8352
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/entity-py.cc
View file @
7eb43ee3
...
...
@@ -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"
#endif
using
dynamicgraph
::
Entity
;
using
dynamicgraph
::
SignalBase
;
using
dynamicgraph
::
command
::
Command
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment