Warning fixes to most detailed warning output of OpenWatcom. Tested under Borland, DigitalMars and MinGW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -90,7 +90,7 @@ int ParseSHG( const wxChar* fileName, HotSpot **hotspots)
|
|||||||
if(nMacroStrings > 0)
|
if(nMacroStrings > 0)
|
||||||
fseek( fSHG, nMacroStrings, SEEK_CUR); //nMacroStrings is byte offset...
|
fseek( fSHG, nMacroStrings, SEEK_CUR); //nMacroStrings is byte offset...
|
||||||
// and, at the last, read through the strings: hotspot-id[ignored], then topic/macro
|
// and, at the last, read through the strings: hotspot-id[ignored], then topic/macro
|
||||||
int c;
|
int c;
|
||||||
for( i = 0 ; i < nHotspots ; ++i)
|
for( i = 0 ; i < nHotspots ; ++i)
|
||||||
{
|
{
|
||||||
while( (c = fgetc( fSHG)) != 0)
|
while( (c = fgetc( fSHG)) != 0)
|
||||||
@@ -99,7 +99,7 @@ int ParseSHG( const wxChar* fileName, HotSpot **hotspots)
|
|||||||
int j = 0;
|
int j = 0;
|
||||||
while( (c = fgetc( fSHG)) != 0)
|
while( (c = fgetc( fSHG)) != 0)
|
||||||
{
|
{
|
||||||
(*hotspots)[i].szHlpTopic_Macro[j] = c;
|
(*hotspots)[i].szHlpTopic_Macro[j] = (wxChar)c;
|
||||||
++j;
|
++j;
|
||||||
}
|
}
|
||||||
(*hotspots)[i].szHlpTopic_Macro[j] = 0;
|
(*hotspots)[i].szHlpTopic_Macro[j] = 0;
|
||||||
|
Reference in New Issue
Block a user