warn_uninitializedvar. NXP CodeWarrior Development Studio
Annonce
Annonce
warn_uninitializedvar
Use this pragma to detect the use of undefined macros (especially expressions) where the default value 0 is used. To suppress this warning message, check if defined first.
NOTE
A warning message is only issued when a macro is evaluated. A short-circuited "
&&
" or "
||
" test or unevaluated "
?:
" will not produce a warning message.
By default, this pragma is off
.
31.33 warn_uninitializedvar
Controls the compiler to perform some dataflow analysis and emits warning messages whenever local variables are initialized before being used.
Syntax
#pragma warn_uninitializedvar on | off | reset
Remarks
This pragma has no corresponding setting in the CodeWarrior IDE. By default, this pragma is on
.
NOTE
#pragma warn_possiblyuninitializedvar
is a superset of
#pragma warn_uninitializedvar
.
31.34 warn_unusedarg
Controls the recognition of unreferenced arguments.
Syntax
#pragma warn_unusedarg on | off | reset
Remarks
If you enable this pragma, the compiler issues a warning message when it encounters an argument you declare but do not use.
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
486 Freescale Semiconductor, Inc.
Download
Annonce