You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"unreachable code" warning in functions in *_igate.cxx files #2
Building panda3d I discovered that in the files *_igate.cxx (created by dtool/interrogated) unreachable code is generated for the functions "sequence getter for property ..." (ie Dtool_*_Sequence_Getitem ()), such as:
if (! _PyErr_OCCURRED()) {
return Dtool_Raise_BadArgumentsError (
...
}
Indeed g++ (v. 8.3) issues warnings such as: ... warning: control reaches end of non-void function ...
Examples of this code can be found in different files: libp3chan_igate.cxx, libp3collide_igate.cxx etc ...
I report this as it could hide an error.
Bye
Activity