-
Notifications
You must be signed in to change notification settings - Fork 51
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
Feature/fixing clang gnu compiler warnings #45
Merged
n9wxu
merged 15 commits into
FreeRTOS:main
from
phelter:feature/fixing-clang-gnu-compiler-warnings
May 16, 2023
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
06bb5a6
Support for CMake builds. Added Linux stub port for now to allow cross
phelter 321db9e
Fixing misuse of doxygen documentation
phelter b583a73
Converting prints from %lu to %u where possible as per request in com…
phelter 15c8f65
Fixing clang compiler warnings.
phelter bdc2f5a
Fixing build test to work regardless of configuration.
phelter c095b29
Adding in for Zynq port dependency on uncached_memory target.
phelter c6e8021
Excluding build_test from all build - must request it explicitly.
phelter 5163366
Ensuring XPAR_XSDPS_0_IS_CACHE_COHERENT is 1 for this build since using
phelter 105f900
Updating compiler warnings.
phelter a37b5f0
Fixing documentation, signed/unsigned conversion. Bugfix for time bas…
phelter 8ff184c
Merge branch 'master' into feature/fixing-clang-gnu-compiler-warnings
phelter 3f8fb14
Fixing error creation using FF_createERR everywhere missed.
phelter 4aa9dbb
Fixing build_test in ci.yml
phelter 325a308
Merge branch 'main' into feature/fixing-clang-gnu-compiler-warnings
amazonKamath d500500
Uncrustify: triggered by comment.
actions-user File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is compiling with clang 14.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I feel array-bounds violations are fairly useful warnings, but I'm unaware whether there were intended "false positive" types being reported. Regardless plenty of other warnings were fixed, so approved first round of reviews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I built POSIX test on Ubuntu 22.04 with GCC11 with
Warray-bounds
and no array bound warnings came up.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dachalco I also use GCC11.3.0 and had to compile with that added to ensure no errors. I treat all
warnings
aserrors
. So this list is merely stating what is detected by Clang and GNU when compiling with those.If they are no longer there then feel free to delete them, but the process I typically use is:
If you have a build that confirms this is no longer there then feel free to remove once the workflow adds those.