Skip to content

Updates to GCC warning level flags #43

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

Merged
merged 1 commit into from
Aug 23, 2013
Merged

Updates to GCC warning level flags #43

merged 1 commit into from
Aug 23, 2013

Conversation

adamgreen
Copy link
Contributor

In gcc4mbed, I have been running with "-Wall -Wextra" and then
disabling a couple of noisy warnings that result. In particular, I
disable the unused-parameter and missing-field-initializers warnings.
The first commonly goes off for implementation of virtual methods or
other overridable functions where not all parameters are required for
every override. I don't find the second warning to be all that useful
anyway since missing structure field initializers will be set to 0
according to the C language specification. The RTOS code uses this
language feature and I see no reason that it shouldn't :)

In gcc4mbed, I have been running with "-Wall -Wextra" and then
disabling a couple of noisy warnings that result.  In particular, I
disable the unused-parameter and missing-field-initializers warnings.
The first commonly goes off for implementation of virtual methods or
other overridable functions where not all parameters are required for
every override.  I don't find the second warning to be all that useful
anyway since missing structure field initializers will be set to 0
according to the C language specification.  The RTOS code uses this
language feature and I see no reason that it shouldn't :)
emilmont added a commit that referenced this pull request Aug 23, 2013
Updates to GCC warning level flags
@emilmont emilmont merged commit 4d08c07 into ARMmbed:master Aug 23, 2013
@adamgreen
Copy link
Contributor Author

Thanks!

@adamgreen adamgreen deleted the gccWarnFlagUpdate branch August 23, 2013 17:59
bridadan pushed a commit that referenced this pull request Jun 21, 2016
Add reponse files for GCC, ARMCC and IAR linking
donatieng pushed a commit to donatieng/mbed-os that referenced this pull request May 16, 2018
geky pushed a commit to geky/mbed that referenced this pull request Aug 25, 2018
yossi2le pushed a commit to yossi2le/mbed-os that referenced this pull request Jan 2, 2019
linlingao pushed a commit to linlingao/mbed-os that referenced this pull request Jul 12, 2019
Working on GPIO IRQ & Port APIs
pan- pushed a commit to pan-/mbed that referenced this pull request May 29, 2020
pan- added a commit to pan-/mbed that referenced this pull request May 29, 2020
Update mbed-os.lib to mbed-os-5.3.1
0xc0170 pushed a commit that referenced this pull request Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants