Author: sebor
Date: Wed Mar 7 10:12:24 2007
New Revision: 515674
URL: http://svn.apache.org/viewvc?view=rev&rev=515674
Log:
2007-03-07 Martin Sebor <[EMAIL PROTECTED]>
* time_put.cpp (main): Silenced the bogus HP aCC Warning 578: A class
member may not be a const array since there is no way to initialize
such a member (see STDCXX-347).
Modified:
incubator/stdcxx/trunk/examples/manual/time_put.cpp
Modified: incubator/stdcxx/trunk/examples/manual/time_put.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/examples/manual/time_put.cpp?view=diff&rev=515674&r1=515673&r2=515674
==============================================================================
--- incubator/stdcxx/trunk/examples/manual/time_put.cpp (original)
+++ incubator/stdcxx/trunk/examples/manual/time_put.cpp Wed Mar 7 10:12:24 2007
@@ -55,8 +55,12 @@
// array of all supported conversion specifiers
static const struct {
- const char spec [4]; // specifier
- const char desc [40]; // description
+ // const below commented out to avoid compiler warnings
+ // such as HP aCC's Warning 578: A class member may not
+ // be a const array since there is no way to initialize
+ // such a member.
+ /* const */ char spec [4]; // specifier
+ /* const */ char desc [40]; // description
} fmt[] = {
// plain (unmodified) conversion specifiers
{ "%a", "abbreviated weekday name" },