diff --git a/tests/graphics/clippingbox.cpp b/tests/graphics/clippingbox.cpp index b933b4d08b..ad1e556a20 100644 --- a/tests/graphics/clippingbox.cpp +++ b/tests/graphics/clippingbox.cpp @@ -284,6 +284,8 @@ static void FlushDC(wxDC& dc) dc.SetGraphicsContext(NULL); #endif // __WXMSW__ && wxUSE_GRAPHICS_DIRECT2D } +#else + wxUnusedVar(dc); #endif // wxUSE_GRAPHICS_CONTEXT }