diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index 01d4a61a75..f28eca94df 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -62,6 +62,10 @@ wxCompareFamilies (const void *a, const void *b) bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, bool fixedWidthOnly) { + // This parameter may be unused when pango_font_family_is_monospace() is + // not available, suppress the (unavoidable) warning in this case. + wxUnusedVar(fixedWidthOnly); + if ( encoding != wxFONTENCODING_SYSTEM && encoding != wxFONTENCODING_UTF8 ) { // Pango supports only UTF-8 encoding (and system means any, so we