Fix 206: false positive: misra-c2012-2.5#7081
Merged
Merged
Conversation
danmar
reviewed
Dec 8, 2024
3a0ab8c to
2e319e3
Compare
danmar
reviewed
Dec 8, 2024
Collaborator
There was a problem hiding this comment.
As far as I see no macros are added to the used_macros isn't that a mistake..
This is a CTU check. The spec defines that it's a "System" check. So it should not be added to the misra-test.c.
Define a macro in misra-ctu-test.h
Undefine the macro in misra-ctu-1-test.c
Do not use the macro in misra-ctu-2-test.c
Then ensure that no warning is written because the macro is not used in misra-ctu-2-test.c
a2edfd0 to
d4e1dd4
Compare
danmar
reviewed
Dec 10, 2024
8bfb350 to
cefbc39
Compare
danmar
reviewed
Dec 10, 2024
cefbc39 to
3d02ee3
Compare
danmar
reviewed
Dec 13, 2024
3d02ee3 to
c712b5e
Compare
danmar
reviewed
Dec 15, 2024
c712b5e to
60de280
Compare
danmar
approved these changes
Dec 17, 2024
danmar
reviewed
Dec 30, 2024
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.