Additional gcc flags #446
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#446
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There are some additional warning flags that are not part of -Wall and -Wextra, which might add some useful checks. Some examples:
Warn about duplicated condition in if-else-if chains, such as
Warn about use of logical operations where a bitwise operation probably was intended, such as
It also warns when the operands of logical operations are the same
Warn when the compiler detects paths that dereferences a null pointer.
All examples from:
https://kristerw.blogspot.com/2017/09/useful-gcc-warning-options-not-enabled.html
From our friends at Airbus: https://airbus-seclab.github.io/c-compiler-security/
From #491:
-Wundef
might be useful to catch missing configuration definesMerged in #568