-
Notifications
You must be signed in to change notification settings - Fork 89
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
unintialized error when building NeighborCommunicator.cpp #2615
Comments
Hey @Eric-Guiltinan, the issue seems to be the FieldLocation enum is uninitialized here: Could you try adding an additional And then set We should also maybe define |
That worked. We had to handle the undefined type in each of the switch statements as well. We just put them in as GEOS_ERROR ('Field Location is undefined') or something like that. Should we make a branch with the changes and submit a pull request? |
Yes, please. It would be good to have some other folks look at this. I am a little surprised this happened, as I thought enums always had a default value (0), but at least we know the fix. Regardless, it is good for us to catch potentially undefined behavior. |
Yeah all switches on enums must have a I'm just surprised we haven't caught this before. Our CI has gcc-11.2 which is a bit older than 11.4, so maybe the warning was added somewhere in between. IMO we should always have the newest available |
@Eric-Guiltinan - Are you planning to submit a PR to address this issue, or should another dev do so? |
Sorry, yeah, we made the edits on another account and will submit a PR on Monday morning. |
@Eric-Guiltinan where is the PR? |
@paveltomin, it seems easier for us to push a fix rather than @Eric-Guiltinan. this is on my todo list. |
@joshua-white where is the PR? |
Describe the bug
An uninitialized error when building GEOS. Perhaps when building NeighborCommunicator.cpp. See screenshot
To Reproduce
Build TPLs and then GEOS on latest ubuntu with gcc 11.4.0 and cmake 3.24.1
Screenshots
Platform (please complete the following information):
Additional context
Built it in the same manner which was successful for us on 4/5/23
The text was updated successfully, but these errors were encountered: