From e3346dd8bf2993df3310372e912c36c0fe4bbbaf Mon Sep 17 00:00:00 2001 From: Bourumir Wyngs Date: Sun, 6 Aug 2023 11:43:43 +0200 Subject: [PATCH] Fix "control reaches end of non void function" error. --- example/unmanned_aerial_vehicle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/unmanned_aerial_vehicle.cpp b/example/unmanned_aerial_vehicle.cpp index 912effe13..0e2091edb 100644 --- a/example/unmanned_aerial_vehicle.cpp +++ b/example/unmanned_aerial_vehicle.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include using namespace mp_units; @@ -56,6 +57,7 @@ constexpr const char* to_text(earth_gravity_model m) case egm2008_1: return "EGM2008-1"; } + assert(false && "unsupported enum value"); } template