From 9907742a0f73bdbbf578cd2b6c424b80d254fed1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 9 Feb 2009 01:06:23 +0000 Subject: (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. --- src/window.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/window.cpp') diff --git a/src/window.cpp b/src/window.cpp index 5161bea4f..c8d15245a 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -172,6 +172,7 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, bool double_click) if (wi->type & WWB_MASK) { /* special widget handling for buttons*/ switch (wi->type) { + default: NOT_REACHED(); case WWT_PANEL | WWB_PUSHBUTTON: /* WWT_PUSHBTN */ case WWT_IMGBTN | WWB_PUSHBUTTON: /* WWT_PUSHIMGBTN */ case WWT_TEXTBTN | WWB_PUSHBUTTON: /* WWT_PUSHTXTBTN */ -- cgit v1.2.3-54-g00ecf