Type info
Title C/C++ compiler warnings
Posted by [EMAIL PROTECTED]
Affected ,.
Effective from CWS warnings01


Summary

solenv:

- CFLAGSDFLTWARN
+ CFLAGSWARNCC
+ CFLAGSWARNCXX
- CFLAGSWALL
+ CFLAGSWALLCC
+ CFLAGSWALLCXX
+ CFLAGSWERRCC
+ CFLAGSWERRCXX
+ werror=1
+ COMPILER_WARN_ERRORS
+ EXTERNAL_WARNINGS_NOT_ERRORS


Description
CFLAGSDFLTWARN has been replaced by two new variables CFLAGSWARNCC (C
compiler) and CFLAGSWARNCXX (C++ compiler); if on some platform
CFLAGSWARNCXX is not set, CFLAGSWARNCC is used instead;

CFLAGSWALL has been replaced by two new variables CFLAGSWALLCC (C
compiler) and CFLAGSWALLCXX (C++ compiler); if on some platform
CFLAGSWALLCXX is not set, CFLAGSWALLCC is used instead;

CFLAGSWARNCC/CXX and CFLAGSWALLCC/CXX are no longer added to
CFLAGSAPPEND (so that they appear at the end of the compiler command
line), but rather to CFLAGSCC/CXX (which means that they appear at an
arbitrary place within the compiler command line); to make this work,
on all platforms, all warning-related compiler switches that had
previously been added to some other CFLAGS... variable have been moved
to CFLAGSWARNCC/CXX and/or CFLAGSWALLCC/CXX.

Added build switch werror=1 that turns on new COMPILER_WARN_ERRORS,
which in turn adds new CFLAGSWERRCC/CFLAGSWERRCXX to CFLAGSCC/CXX
(unless EXTERNAL_WARNINGS_NOT_ERRORS is set, see below); if on some
platform CFLAGSWERRCXX is not set, CFLAGSWERRCXX is used instead.

Added EXTERNAL_WARNINGS_NOT_ERRORS that can be specified in
makefile.mk of external code ("EXTERNAL_WARNINGS_NOT_ERRORS=TRUE") to
suppress COMPILER_WARN_ERRORS (see above).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to