Suppress all warnings
-W, --extra-warnings, --warn-, --warn-= | Enable the specified warning |
-Wdeprecated, -Wno-deprecated | Enable warnings for deprecated constructs and define __DEPRECATED |
Synonym for -Wextra.
Some of the diagnostics controlled by this flag are enabled by default.
Controls
Some of the diagnostics controlled by this flag are enabled by default.
Also controls
- -Wempty-init-stmt,
- -Wignored-qualifiers,
- -Winitializer-overrides,
- -Wmissing-field-initializers,
- -Wmissing-method-return-type,
- -Wnull-pointer-arithmetic,
- -Wsemicolon-before-method-body,
- -Wsign-compare,
- -Wunused-parameter.
Diagnostic text:
warning: call to function without interrupt attribute could clobber interruptee’s VFP registers
-Werror |
Turn warnings into errors. |
-Werror=foo |
Turn warning “foo” into an error. |
-Wno-error=foo |
Turn warning “foo” into a warning even if -Werror is specified. |
-Wfoo |
Enable warning “foo”. See the diagnostics reference for a complete list of the warning flags that can be specified in this way. |
-Wno-foo |
Disable warning “foo”. |
-w |
Disable all diagnostics. |
-Weverything |
Enable all diagnostics. |
/Wall |
Enable -Weverything |