-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some warnings in developer builds (#3247)
* Fix some warnings in developer builds * Switch approach to Winline flag
- Loading branch information
1 parent
919ce7a
commit aab497a
Showing
22 changed files
with
249 additions
and
268 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
# (suggestions from gcc, not code problems) | ||
-Waggregate-return | ||
-Wdisabled-optimization | ||
-Winline | ||
-Wmissing-format-attribute | ||
-Wmissing-noreturn | ||
-Wswitch-default | ||
-Wswitch-enum | ||
-Wunsafe-loop-optimizations | ||
-Wunused-macros | ||
# -Winline warnings aren't included here because, for at least | ||
# GNU compilers, this flag appears to conflict specifically with | ||
# the -Og optimization level flag added for Debug and Developer | ||
# builds and will produce warnings about functions not being | ||
# considered for inlining. The flag will be added to the list | ||
# of compiler flags separately if developer warnings are enabled | ||
# and the build type is not Debug or Developer | ||
#-Winline |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
-Winline | ||
-Wreorder | ||
-Wport | ||
-Wstrict-aliasing | ||
# -Winline warnings aren't included here because, for at least | ||
# GNU compilers, this flag appears to conflict specifically with | ||
# the -Og optimization level flag added for Debug and Developer | ||
# builds and will produce warnings about functions not being | ||
# considered for inlining. The flag will be added to the list | ||
# of compiler flags separately if developer warnings are enabled | ||
# and the build type is not Debug or Developer | ||
#-Winline |
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.