Patches item #2813005, was opened at 2009-06-26 23:38
Message generated for change (Tracker Item Submitted) made by vadz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=462818&aid=2813005&group_id=51305

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Vadim Zeitlin (vadz)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxCurl: trivial g++ 4.3 warning fix

Initial Comment:
This is a really trivial patch so let me put it inline:

--- a/lib/wxcurl/src/ftpparse.cpp
+++ b/lib/wxcurl/src/ftpparse.cpp
@@ -120,7 +120,7 @@ static long guesstai(long month,long mday)
   return 0;
 }

-static int checkit(char *buf,char *monthname)
+static int checkit(char *buf,const char *monthname)
 {
   if ((buf[0] != monthname[0]) && (buf[0] != monthname[0] - 32)) return 0;
   if ((buf[1] != monthname[1]) && (buf[1] != monthname[1] - 32)) return 0;
@@ -128,7 +128,7 @@ static int checkit(char *buf,char *monthname)
   return 1;
 }

-static char *months[12] = {
+static const char *months[12] = {
   "jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"
 } ;


It basically just adds 2 const keywords to suppress g++ 4.3 warning about 
converting string literals to non-const char pointer.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=462818&aid=2813005&group_id=51305

------------------------------------------------------------------------------
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to