-
Notifications
You must be signed in to change notification settings - Fork 215
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
New compile warnings with GCC 11.x #1199
Comments
I wouldn't mind tackling this, however I am having trouble replicating the issue. I'm using the same version of GCC on Pop!_OS, but building OSAL standalone doesn't seem to output any errors. My method of building is the one listed in the OSAL Configuration Guide:
I also tried adding |
My guess is these warnings were observed when compiling OSAL from within the bundle context (https://github.com/nasa/cFS). There's additional warnings enabled here (if/when you copy in the sample_defs to the bundle context): |
It requires a very recent version of GCC (11+). IIRC Pop OS is based on 20.04 so that's too old. I actually have fix already, I patched it up so I could build on this system (Ubuntu 21.10), but haven't made a PR yet. |
Oh ok, yeah I have the latest version of GCC but I wasn't building as part of the bundle. Thanks for the clarification! |
Fix #1199, correct warnings on gcc11 # Please enter a commit message to explain why this merge is necessary,
Fix nasa#1199, Add workflow to build cFE documentation
Describe the bug
The newer versions of GCC report new warnings. These appear to be mostly false alarms, but easy to fix nonetheless.
To Reproduce
Build OSAL using recent GCC
Expected behavior
Should compile without warnings or errors
Code snips
System observed on:
Ubuntu 21.10, gcc 11.2.0
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: