From a14923cea098a1590f93aae39f398a4f9134206e Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sun, 15 Dec 2019 16:38:45 -0600 Subject: [PATCH] Maintainability: Anticipate future types --- src/Instrumentation/rnav_waypt_controller.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Instrumentation/rnav_waypt_controller.cxx b/src/Instrumentation/rnav_waypt_controller.cxx index 3e9891f92..80e0b5a14 100644 --- a/src/Instrumentation/rnav_waypt_controller.cxx +++ b/src/Instrumentation/rnav_waypt_controller.cxx @@ -20,6 +20,7 @@ #include "rnav_waypt_controller.hxx" #include +#include #include #include @@ -1016,6 +1017,8 @@ double HoldCtl::courseDeviationDeg() const case HOLD_INBOUND: return "hold-inbound"; case HOLD_EXITING: return "hold-exiting"; } + + throw std::domain_error("Unsupported HoldState."); } ///////////////////////////////////////////////////////////////////////////////////