From 84e0e5265dc876c4a6f541211ab2a80d36704201 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 24 Aug 2009 21:42:21 +0000 Subject: [PATCH] No changes, just fix unused variables and parameters warnings. Fix warnings in wxGTK wxUSE_GRAPHICS_CONTEXT==1 build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/drawing/drawing.cpp | 2 +- src/generic/graphicc.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/samples/drawing/drawing.cpp b/samples/drawing/drawing.cpp index 8da014ba72..5069eb5938 100644 --- a/samples/drawing/drawing.cpp +++ b/samples/drawing/drawing.cpp @@ -894,7 +894,7 @@ void MyCanvas::DrawWithLogicalOps(wxDC& dc) #if wxUSE_GRAPHICS_CONTEXT #ifdef __WXGTK20__ -void MyCanvas::DrawAlpha(wxDC& no_dc) +void MyCanvas::DrawAlpha(wxDC& WXUNUSED(dummyDC)) #else void MyCanvas::DrawAlpha(wxDC& dc) #endif diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index af0031b536..94b1247b22 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -1018,7 +1018,6 @@ wxCairoBitmapData::wxCairoBitmapData( wxGraphicsRenderer* renderer, const wxBitm { wxCHECK_RET( bmp.IsOk(), wxT("Invalid bitmap in wxCairoContext::DrawBitmap")); - cairo_surface_t* surface; int bw = bmp.GetWidth(); int bh = bmp.GetHeight(); wxBitmap bmpSource = bmp; // we need a non-const instance @@ -1875,7 +1874,12 @@ wxGraphicsBitmap wxCairoRenderer::CreateBitmap( const wxBitmap& bmp ) return wxNullGraphicsBitmap; } -wxGraphicsBitmap wxCairoRenderer::CreateSubBitmap( const wxGraphicsBitmap &bitmap, wxDouble x, wxDouble y, wxDouble w, wxDouble h ) +wxGraphicsBitmap +wxCairoRenderer::CreateSubBitmap(const wxGraphicsBitmap& WXUNUSED(bitmap), + wxDouble WXUNUSED(x), + wxDouble WXUNUSED(y), + wxDouble WXUNUSED(w), + wxDouble WXUNUSED(h)) { wxFAIL_MSG("wxCairoRenderer::CreateSubBitmap is not implemented."); return wxNullGraphicsBitmap; -- 2.47.2