stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r645656 - /stdcxx/trunk/include/loc/_localedef.h
Date Mon, 07 Apr 2008 19:30:31 GMT
Author: sebor
Date: Mon Apr  7 12:30:30 2008
New Revision: 645656

URL: http://svn.apache.org/viewvc?rev=645656&view=rev
Log:
2008-04-07  Martin Sebor  <sebor@roguewave.com>

	STDCXX-830
	* include/loc/_localedef.h [6 <= _RWSTD_HP_aCC_MAJOR]: Suppressed
	HP aCC remarks 4298 and 4299 for most of the header since they
	don't indicate a problem.

Modified:
    stdcxx/trunk/include/loc/_localedef.h

Modified: stdcxx/trunk/include/loc/_localedef.h
URL: http://svn.apache.org/viewvc/stdcxx/trunk/include/loc/_localedef.h?rev=645656&r1=645655&r2=645656&view=diff
==============================================================================
--- stdcxx/trunk/include/loc/_localedef.h (original)
+++ stdcxx/trunk/include/loc/_localedef.h Mon Apr  7 12:30:30 2008
@@ -22,7 +22,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 2001-2007 Rogue Wave Software, Inc.
+ * Copyright 2001-2008 Rogue Wave Software, Inc.
  *
  **************************************************************************/
 
@@ -33,6 +33,14 @@
 #include <rw/_defs.h>
 
 
+#if 6 <= _RWSTD_HP_aCC_MAJOR
+   // suppress HP aCC 6 remarks
+   // 4298: addition result truncated before cast to bigger sized type
+   // 4299: multiply result truncated before cast to bigger sized type
+#  pragma diag_suppress 4298, 4299
+#endif   // aCC >= 6.0
+
+
 _RWSTD_NAMESPACE (__rw) { 
 
 // LC_CTYPE structures
@@ -678,6 +686,12 @@
         return _RWSTD_CHAR_ARRAY (time_ext_off);
     }
 };
+
+
+#if 6 <= _RWSTD_aCC_MAJOR
+   // restore HP aCC 6 remarks suppressed above to their default state
+#  pragma diag_default 4298, 4299
+#endif   // aCC >= 6
 
 
 static inline _RWSTD_SIZE_T



Mime
View raw message