From: <sv...@ww...> - 2008-03-26 05:41:41
|
Author: mkrose Date: 2008-03-25 22:41:33 -0700 (Tue, 25 Mar 2008) New Revision: 2226 Modified: trunk/csp/csplib/xml/XmlParser.cpp Log: Fix a couple warnings under gcc 4.2.3 Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=2226 Modified: trunk/csp/csplib/xml/XmlParser.cpp =================================================================== --- trunk/csp/csplib/xml/XmlParser.cpp 2008-03-26 05:25:31 UTC (rev 2225) +++ trunk/csp/csplib/xml/XmlParser.cpp 2008-03-26 05:41:33 UTC (rev 2226) @@ -368,7 +368,10 @@ if (pResults.error != eXMLErrorNone) { // create message - char message[2000],*s1="",*s3=""; CSP_XMLCSTR s2=CSP_XMLSTRP(""); + char message[2000]; + const char *s1=""; + const char *s3=""; + CSP_XMLCSTR s2=CSP_XMLSTRP(""); if (pResults.error==eXMLErrorFirstTagNotFound) { s1="First Tag should be '"; s2=tag; s3="'.\n"; } sprintf(message, #ifdef _XMLUNICODE |