Skip to content

Commit

Permalink
Fix "control reaches end of non void function" error.
Browse files Browse the repository at this point in the history
  • Loading branch information
bourumir-wyngs committed Aug 6, 2023
1 parent 53c9d96 commit e3346dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/unmanned_aerial_vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <mp-units/systems/international/international.h>
#include <mp-units/systems/isq/space_and_time.h>
#include <mp-units/systems/si/unit_symbols.h>
#include <cassert>
#include <iostream>

using namespace mp_units;
Expand Down Expand Up @@ -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<earth_gravity_model M>
Expand Down

0 comments on commit e3346dd

Please sign in to comment.