You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2008/05/20 22:55:07 UTC

svn commit: r658425 - in /stdcxx/branches/4.2.x/src: ti_num_get.cpp ti_num_put.cpp ti_numpunct.cpp

Author: sebor
Date: Tue May 20 13:55:07 2008
New Revision: 658425

URL: http://svn.apache.org/viewvc?rev=658425&view=rev
Log:
2008-05-20  Martin Sebor  <se...@roguewave.com>

	STDCXX-940
	* src/ti_numpunct.cpp: Silenced the useless HP aCC 6 remark
	#4244-D: extern storage class used with a function definition
	while carefully avoiding HP aCC 3 Warning (suggestion) #933:
	Null macro argument #1 for macro.
	* src/ti_num_put.cpp: Same.
	* src/ti_num_get.cpp: Same.

Modified:
    stdcxx/branches/4.2.x/src/ti_num_get.cpp
    stdcxx/branches/4.2.x/src/ti_num_put.cpp
    stdcxx/branches/4.2.x/src/ti_numpunct.cpp

Modified: stdcxx/branches/4.2.x/src/ti_num_get.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/ti_num_get.cpp?rev=658425&r1=658424&r2=658425&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/src/ti_num_get.cpp (original)
+++ stdcxx/branches/4.2.x/src/ti_num_get.cpp Tue May 20 13:55:07 2008
@@ -22,7 +22,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2008 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -47,6 +47,16 @@
 
 #define TARGS_C   <char, _RWSTD_ISTREAMBUF_ITER (char) >
 
+
+#if 6 == _RWSTD_HP_aCC_MAJOR
+   // silence the useless HP aCC 6 remark 4244: extern storage class
+   // used with a function definition on the "extern _RWSTD_EXPORT"
+   // macro argument below where the redundant "extern" is there to
+   // silence HP aCC 3 Warning (suggestion) 933: Null macro argument #1
+#  pragma diag_suppress 4244
+#endif   // aCC 6
+
+
 _RWSTD_SPECIALIZE_FACET_ID (num_get, TARGS_C);
 _RWSTD_DEFINE_FACET_FACTORY (extern _RWSTD_EXPORT, num_get, TARGS_C, num_get);
 _RWSTD_SPECIALIZE_USE_FACET (num_get);

Modified: stdcxx/branches/4.2.x/src/ti_num_put.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/ti_num_put.cpp?rev=658425&r1=658424&r2=658425&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/src/ti_num_put.cpp (original)
+++ stdcxx/branches/4.2.x/src/ti_num_put.cpp Tue May 20 13:55:07 2008
@@ -22,7 +22,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2008 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -45,6 +45,16 @@
 
 #define TARGS_C   <char, _RWSTD_OSTREAMBUF_ITER (char) >
 
+
+#if 6 == _RWSTD_HP_aCC_MAJOR
+   // silence the useless HP aCC 6 remark 4244: extern storage class
+   // used with a function definition on the "extern _RWSTD_EXPORT"
+   // macro argument below where the redundant "extern" is there to
+   // silence HP aCC 3 Warning (suggestion) 933: Null macro argument #1
+#  pragma diag_suppress 4244
+#endif   // aCC 6
+
+
 _RWSTD_SPECIALIZE_FACET_ID (num_put, TARGS_C);
 _RWSTD_DEFINE_FACET_FACTORY (extern _RWSTD_EXPORT, num_put, TARGS_C, num_put);
 _RWSTD_SPECIALIZE_USE_FACET (num_put);

Modified: stdcxx/branches/4.2.x/src/ti_numpunct.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/ti_numpunct.cpp?rev=658425&r1=658424&r2=658425&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/src/ti_numpunct.cpp (original)
+++ stdcxx/branches/4.2.x/src/ti_numpunct.cpp Tue May 20 13:55:07 2008
@@ -22,7 +22,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2008 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -45,6 +45,15 @@
 #include "use_facet.h"
 
 
+#if 6 == _RWSTD_HP_aCC_MAJOR
+   // silence the useless HP aCC 6 remark 4244: extern storage class
+   // used with a function definition on the "extern _RWSTD_EXPORT"
+   // macro argument below where the redundant "extern" is there to
+   // silence HP aCC 3 Warning (suggestion) 933: Null macro argument #1
+#  pragma diag_suppress 4244
+#endif   // aCC 6
+
+
 _RWSTD_SPECIALIZE_FACET_ID (numpunct, <char>);
 _RWSTD_DEFINE_FACET_FACTORY (extern _RWSTD_EXPORT, numpunct, <char>, numpunct);
 _RWSTD_SPECIALIZE_USE_FACET (numpunct);