Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"unreachable code" warning in functions in *_igate.cxx files #2

Open
consultit opened this issue Jul 14, 2019 · 0 comments
Open

"unreachable code" warning in functions in *_igate.cxx files #2

consultit opened this issue Jul 14, 2019 · 0 comments

Comments

@consultit
Copy link

consultit commented Jul 14, 2019

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

@rdb rdb transferred this issue from panda3d/panda3d Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant