X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c8392cac2d36d0d211432e71d3b24d3d93c22db..83842a0ba326b22c6b930998a7f817e83ff7f7be:/src/generic/vlbox.cpp diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index df023053a3..50a484eec6 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -486,7 +486,7 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event) // flags for DoHandleItemClick() int flags = ItemClick_Kbd; - int current = 0; // just to silent the stupid compiler warnings + int current; switch ( event.GetKeyCode() ) { case WXK_HOME: @@ -539,6 +539,8 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event) default: event.Skip(); + current = 0; // just to silent the stupid compiler warnings + wxUnusedVar(current); return; }