From 7360bdb7ebc6a0e91b7621fb8da4ce94bec25651 Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Fri, 17 Mar 2017 22:42:43 -0400 Subject: [PATCH] SPIN_INCREMENTAL_TEXT_CTRL: unused member warning --- common/incremental_text_ctrl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/incremental_text_ctrl.cpp b/common/incremental_text_ctrl.cpp index 270c2dd987..cc814c7973 100644 --- a/common/incremental_text_ctrl.cpp +++ b/common/incremental_text_ctrl.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2015 Jean-Pierre Charras, jean-pierre.charras at wanadoo.fr - * Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -129,6 +129,8 @@ SPIN_INCREMENTAL_TEXT_CTRL::SPIN_INCREMENTAL_TEXT_CTRL( wxSpinButton& aSpinBtn, m_spinBtn( aSpinBtn ), m_textCtrl( aTextCtrl ) { + (void) m_spinBtn; + // set always enabled, otherwise it's very hard to keep in sync aSpinBtn.SetRange( -INT_MAX, INT_MAX );