Non-Confidential | ![]() | DUI0774J | ||
| ||||
Home > Compiler Command-line Options > -W |
Controls diagnostics.
-W
name
Where common values for
include:name
-Wc11-extensions
-Werror
Turn warnings into errors.
-Werror=foo
Turn warning foo
into an error.
-Wno-error=foo
Leave warning foo
as a warning even if -Werror
is specified.
-Wfoo
Enable warning foo
.
-Wno-foo
Suppress warning foo
.
-Weverything
Enable all warnings.
-Wpedantic
Generate warnings if code violates strict ISO C and ISO C++.
See Controlling Errors and Warnings in the Clang Compiler
User's Manual for full details about controlling diagnostics with armclang
.