Author: sebor
Date: Wed Apr 23 12:10:45 2008
New Revision: 651012
URL: http://svn.apache.org/viewvc?rev=651012&view=rev
Log:
2008-04-23 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-729
* include/loc/_money_put.cc [__GNUG__] (_C_put): Silenced bogus
gcc -Wuninitialized warning: object may be used uninitialized in
this function while avoiding bogus HP aCC/cadvise warning 20200:
potential null pointer dereference.
Modified:
stdcxx/branches/4.2.x/include/loc/_money_put.cc
Modified: stdcxx/branches/4.2.x/include/loc/_money_put.cc
URL:
http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/loc/_money_put.cc?rev=651012&r1=651011&r2=651012&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/loc/_money_put.cc (original)
+++ stdcxx/branches/4.2.x/include/loc/_money_put.cc Wed Apr 23 12:10:45 2008
@@ -67,8 +67,17 @@
typedef moneypunct<_CharT, false> _Punct0;
typedef moneypunct<_CharT, true> _Punct1;
- const _Punct0* __pun0 = 0;
- const _Punct1* __pun1 = 0;
+ const _Punct0* __pun0;
+ const _Punct1* __pun1;
+
+#ifdef __GNUG__
+ // silence bogus gcc -Wuninitialized warning:
+ // object may be used uninitialized in this function
+ // while avoiding bogus HP aCC/cadvise warning 20200:
+ // potential null pointer dereference
+ __pun0 = 0;
+ __pun1 = 0;
+#endif // gcc
if (__intl) {
__pun1 = &_RWSTD_USE_FACET (_Punct1, __flags.getloc ());