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