From 789b4e320bf229219213233bdfbc2b5b95fa2e41 Mon Sep 17 00:00:00 2001 From: zuu Date: Sun, 21 Jul 2013 17:14:35 +0000 Subject: (svn r25624) -Fix (r25620, r25623): Silence warnings --- src/goal_gui.cpp | 1 - src/story.cpp | 1 + src/story_gui.cpp | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/goal_gui.cpp b/src/goal_gui.cpp index 7c250558f..f401b6dc1 100644 --- a/src/goal_gui.cpp +++ b/src/goal_gui.cpp @@ -237,7 +237,6 @@ struct GoalListWindow : public Window { void DrawListColumn(GoalColumn column, NWidgetBase *wid, uint progress_col_width) const { /* Get column draw area. */ - bool rtl = _current_text_dir == TD_RTL; int y = wid->pos_y + WD_FRAMERECT_TOP; int x = wid->pos_x + WD_FRAMERECT_LEFT; int right = x + wid->current_x - WD_FRAMERECT_RIGHT; diff --git a/src/story.cpp b/src/story.cpp index e4b1aa59e..b85ce20ac 100644 --- a/src/story.cpp +++ b/src/story.cpp @@ -88,6 +88,7 @@ static void UpdateElement(StoryPageElement &pe, TileIndex tile, uint32 reference case SPET_GOAL: pe.referenced_id = (GoalID)reference; break; + default: NOT_REACHED(); } } diff --git a/src/story_gui.cpp b/src/story_gui.cpp index 8ce0dcb82..e2a325911 100644 --- a/src/story_gui.cpp +++ b/src/story_gui.cpp @@ -535,6 +535,8 @@ public: SetDParamStr(0, pe->text); DrawActionElement(y_offset, right - x, line_height, GetPageElementSprite(*pe)); break; + + default: NOT_REACHED(); } } -- cgit v1.2.3-54-g00ecf