Author: sebor Date: Wed Mar 19 13:43:49 2008 New Revision: 639003 URL: http://svn.apache.org/viewvc?rev=639003&view=rev Log: 2008-03-19 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-695 STDCXX-788 * etc/config/acc.config (WARNFLAGS): Disabled useless HP aCC 6 remarks 4296: arithmetic operation on boolean type, and 4297: boolean value is used as array index. Also disabled remark 3348: declaration hides constant or variable, due to a compiler bug (hopefully fixed by the time 6.20 comes out). Modified: stdcxx/trunk/etc/config/acc.config Modified: stdcxx/trunk/etc/config/acc.config URL: http://svn.apache.org/viewvc/stdcxx/trunk/etc/config/acc.config?rev=639003&r1=639002&r2=639003&view=diff ============================================================================== --- stdcxx/trunk/etc/config/acc.config (original) +++ stdcxx/trunk/etc/config/acc.config Wed Mar 19 13:43:49 2008 @@ -22,7 +22,7 @@ # implied. See the License for the specific language governing # permissions and limitations under the License. # -# Copyright 1999-2007 Rogue Wave Software, Inc. +# Copyright 1999-2008 Rogue Wave Software, Inc. # ######################################################################## @@ -46,9 +46,7 @@ ifeq ($(aCC_MAJOR),06) -# disable aCC 6.x (EDG front end) warnings emitted with +w: -WARNFLAGS += +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 - +# disabled warnings: # 2193 zero used for undefined preprocessing identifier # 2236 controlling expression is constant # 2261 access control not specified (%sq by default) @@ -56,8 +54,12 @@ # 2401 destructor for base class %t is not virtual # 2487 inline %n cannot be explicitly instantiated +# disable aCC 6.x (EDG front end) warnings emitted with +w: +WARNFLAGS += +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 + ifeq ($(shell [ $(aCC_MINOR) -gt 10 ] && echo 1),1) +# disabled remarks: # 4227 padding struct with N bytes to align member # 4229 64 bit migration: conversion from "long" to "int" may truncate value # 4231 64 bit migration: conversion between types of different sizes @@ -70,8 +72,24 @@ # 4285 operator= does not have a check for the source and destination # 4286 return non-const handle to non-public data member +# remarks disabled as useless (even according to HP): +# 4296 arithmetic operation on boolean type +# 4297 boolean value is used as array index + WARNFLAGS += +W4227 +W4229 +W4231 +W4235 +W4237 +W4249 \ - +W4255 +W4272 +W4284 +W4285 +W4286 + +W4255 +W4272 +W4284 +W4285 +W4286 +W4296 \ + +W4297 + + ifeq ($(shell [ $(aCC_MINOR) -lt 20 ] && echo 1),1) + +# disabled due to STDCXX-694 (hopefully fixed by the time 6.20 comes out) +# 3348 declaration hides constant or variable + + WARNFLAGS += +W3348 + + endif # aCC < 6.20 + + endif # aCC > 6.10 endif # aCC 6.x