From 4e6763ccc2fdfbd81d6e9d069e904bb250c95a97 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 25 Jan 2018 18:38:01 +0100 Subject: [PATCH] Fix harmless unused parameter warning in wxSTC code The recently added "technology" parameter is unused when Direct2D is not used, avoid compiler complains about this. --- src/stc/PlatWX.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index 4dbe0e42f0..05002340fc 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -1858,6 +1858,8 @@ void SurfaceD2D::DrawTextCommon(PRectangle rc, Font &font_, XYPOSITION ybase, #endif // wxUSE_GRAPHICS_DIRECT2D Surface *Surface::Allocate(int technology) { + wxUnusedVar(technology); + #if wxUSE_GRAPHICS_DIRECT2D if ( technology == wxSTC_TECHNOLOGY_DIRECTWRITE ) { return new SurfaceD2D;