Compile improvemnts for strict compilers and the like

Down to two warning messages for egcs compile


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-01-08 10:23:39 +00:00
parent 06f46ad1fe
commit 702ca7c070
8 changed files with 183 additions and 174 deletions

View File

@@ -174,7 +174,8 @@ wxString wxPathList::FindValidPath (const wxString& file)
char buf[_MAXPATHLEN];
strcpy(buf, wxBuffer);
char *filename = IsAbsolutePath (buf) ? wxFileNameFromPath (buf) : (char *)buf;
char *filename = (char*) NULL; /* shut up buggy egcs warning */
filename = IsAbsolutePath (buf) ? wxFileNameFromPath (buf) : (char *)buf;
for (wxNode * node = First (); node; node = node->Next ())
{