From 67f97053bd8b45688dccba754da7b9e524e52f13 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 24 Feb 2016 23:09:13 +0100 Subject: [PATCH] Avoid warning about missing return value in wxCheckBox code Handle unknown checkbox values as well, if only to silence the compiler. --- src/qt/checkbox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qt/checkbox.cpp b/src/qt/checkbox.cpp index 537daa4281..5196b684bd 100644 --- a/src/qt/checkbox.cpp +++ b/src/qt/checkbox.cpp @@ -119,6 +119,9 @@ wxCheckBoxState wxCheckBox::DoGet3StateValue() const case Qt::PartiallyChecked: return wxCHK_UNDETERMINED; } + + wxFAIL_MSG( "unknown QCheckBox state" ); + return wxCHK_UNDETERMINED; } QCheckBox *wxCheckBox::GetHandle() const