Explicitly cast the strchr() return value to stop VC++ 2k5 bleating about losing...
authorDave Page <dpage@pgadmin.org>
Thu, 31 Aug 2006 08:24:18 +0000 (08:24 +0000)
committerDave Page <dpage@pgadmin.org>
Thu, 31 Aug 2006 08:24:18 +0000 (08:24 +0000)
pgxalib.cpp

index a1609da6efe118341ef70b70629fb2882a51e5fc..88f168bd75f1e42e5b666dd8f0cd3f2e290fc347 100755 (executable)
@@ -388,7 +388,7 @@ static int  TextToXid(XID &xid, const char *rtext)
    char    *sptr;
 
    slen = strlen(rtext);
-   sptr = strchr(rtext, '-');
+   sptr = (char *)strchr(rtext, '-');
    if (sptr)
    {
        glen = (int) (sptr - rtext);