]> git.saurik.com Git - wxWidgets.git/commitdiff
warning fix for !wxUSE_FONTMAP
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 16 Aug 2006 10:31:48 +0000 (10:31 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 16 Aug 2006 10:31:48 +0000 (10:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fontcmn.cpp

index 7c093918c570fcbb2b5c346af57ac6c34cd591a3..f83bb4701fa6cf4c603f37bf97c91b33d15eb362 100644 (file)
@@ -671,7 +671,10 @@ bool wxNativeFontInfo::FromUserString(const wxString& s)
 
     wxString face;
     unsigned long size;
-    bool weightfound = false, pointsizefound = false, encodingfound = false;
+    bool weightfound = false, pointsizefound = false;
+#if wxUSE_FONTMAP
+    bool encodingfound = false;
+#endif
 
     while ( tokenizer.HasMoreTokens() )
     {