6.1.34 Werror Option
The --werror
option can be used to promote linker warnings into errors. As with
any other error, these promoted messages will prevent the application from
completing.
The --werror
form of this option promotes all linker warning messages
issued into errors. This option might be useful in applications where warnings are not
permitted for functional safety reasons.
The --werror=num
form of this option promotes only the
warning identified by num
to an error. See 8 Error and Warning Messages for a list of all
messages and their corresponding number. If the message indicated by
num
is not a warning, then this option has no
effect. Only one message number may be specified with this option; however, you may use
this option as many times as required.
The --wno-error=num
form of this option ensures that
the warning identified by num
is never promoted to an
error, even if the --werror
form of this option is in effect.