Updates to fix Watcom C/C++ 11.0 compiler warning problems. Now compiles
clean with this compiler. Hopefully I did this without breaking other compilers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -290,42 +290,42 @@ bool wxNativeFontInfo::FromString(const wxString& s)
|
||||
token = tokenizer.GetNextToken();
|
||||
if ( !token.ToLong(&l) )
|
||||
return FALSE;
|
||||
lf.lfItalic = l;
|
||||
lf.lfItalic = (BYTE)l;
|
||||
|
||||
token = tokenizer.GetNextToken();
|
||||
if ( !token.ToLong(&l) )
|
||||
return FALSE;
|
||||
lf.lfUnderline = l;
|
||||
lf.lfUnderline = (BYTE)l;
|
||||
|
||||
token = tokenizer.GetNextToken();
|
||||
if ( !token.ToLong(&l) )
|
||||
return FALSE;
|
||||
lf.lfStrikeOut = l;
|
||||
lf.lfStrikeOut = (BYTE)l;
|
||||
|
||||
token = tokenizer.GetNextToken();
|
||||
if ( !token.ToLong(&l) )
|
||||
return FALSE;
|
||||
lf.lfCharSet = l;
|
||||
lf.lfCharSet = (BYTE)l;
|
||||
|
||||
token = tokenizer.GetNextToken();
|
||||
if ( !token.ToLong(&l) )
|
||||
return FALSE;
|
||||
lf.lfOutPrecision = l;
|
||||
lf.lfOutPrecision = (BYTE)l;
|
||||
|
||||
token = tokenizer.GetNextToken();
|
||||
if ( !token.ToLong(&l) )
|
||||
return FALSE;
|
||||
lf.lfClipPrecision = l;
|
||||
lf.lfClipPrecision = (BYTE)l;
|
||||
|
||||
token = tokenizer.GetNextToken();
|
||||
if ( !token.ToLong(&l) )
|
||||
return FALSE;
|
||||
lf.lfQuality = l;
|
||||
lf.lfQuality = (BYTE)l;
|
||||
|
||||
token = tokenizer.GetNextToken();
|
||||
if ( !token.ToLong(&l) )
|
||||
return FALSE;
|
||||
lf.lfPitchAndFamily = l;
|
||||
lf.lfPitchAndFamily = (BYTE)l;
|
||||
|
||||
token = tokenizer.GetNextToken();
|
||||
if(!token)
|
||||
@@ -450,7 +450,7 @@ bool wxFont::RealizeResource()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool wxFont::FreeResource(bool force)
|
||||
bool wxFont::FreeResource(bool WXUNUSED(force))
|
||||
{
|
||||
if ( GetResourceHandle() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user