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."); } ///////////////////////////////////////////////////////////////////////////////////