From a30e15438896201efe42d22e6d6ec9d87169b7d1 Mon Sep 17 00:00:00 2001 From: Richard Fine Date: Thu, 3 Jan 2019 12:06:47 +0000 Subject: [PATCH] Handle all enum values in switches Add 'default' cases to a few enums that were not otherwise handling all possible enum values. This wasn't a problem before because the variables we were switching on were not actually enum types, but now that they are, Clang is warning us about the non-covered cases. --- src/openrct2/peep/Guest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index 7d16cf49d1..ec198e3cb3 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -576,6 +576,8 @@ void rct_peep::Tick128UpdateGuest(int32_t index) case PEEP_THOUGHT_TYPE_RUNNING_OUT: peep_head_for_nearest_ride_type(this, RIDE_TYPE_CASH_MACHINE); break; + default: + break; } } } @@ -681,6 +683,8 @@ void rct_peep::Tick128UpdateGuest(int32_t index) } peep_update_hunger(this); break; + default: + break; } loc_68F9F3: @@ -5530,6 +5534,8 @@ void rct_peep::UpdateQueuing() UpdateCurrentActionSpriteType(); Invalidate(); break; + default: + break; } } }