From 5bb683bcfef5a1ba8ff1c70f390b60d7f06df877 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Jan 2019 02:59:46 +0100 Subject: [PATCH] Fix harmless -Wunused-parameter warnings in wxQt code Note that other such warnings remain where they indicate important missing functionality (notably in wxCairoContext ctor from wxPrinterDC). --- src/qt/nonownedwnd.cpp | 2 +- src/qt/window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/nonownedwnd.cpp b/src/qt/nonownedwnd.cpp index dfb48fbb6f..972c224a2f 100644 --- a/src/qt/nonownedwnd.cpp +++ b/src/qt/nonownedwnd.cpp @@ -60,7 +60,7 @@ bool wxNonOwnedWindow::DoSetRegionShape(const wxRegion& region) } #if wxUSE_GRAPHICS_CONTEXT -bool wxNonOwnedWindow::DoSetPathShape(const wxGraphicsPath& path) +bool wxNonOwnedWindow::DoSetPathShape(const wxGraphicsPath& WXUNUSED(path)) { wxMISSING_IMPLEMENTATION( __FUNCTION__ ); return true; diff --git a/src/qt/window.cpp b/src/qt/window.cpp index 1732de3863..7b99923708 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -610,7 +610,7 @@ QScrollBar *wxWindowQt::QtSetScrollBar( int orientation, QScrollBar *scrollBar ) } -void wxWindowQt::SetScrollbar( int orientation, int pos, int thumbvisible, int range, bool refresh ) +void wxWindowQt::SetScrollbar( int orientation, int pos, int thumbvisible, int range, bool WXUNUSED(refresh) ) { //If not exist, create the scrollbar QScrollBar *scrollBar = QtGetScrollBar( orientation );