Skip to content

Commit

Permalink
💚 Fix unreachable warning for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Jan 3, 2024
1 parent 8b75ea0 commit d91dbf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/ztd/cuneicode/conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <ztd/idk/hash.hpp>
#include <ztd/idk/size.hpp>
#include <ztd/idk/encoding_name.hpp>
#include <ztd/idk/unreachable.hpp>

#include <string_view>
#include <unordered_map>
Expand Down Expand Up @@ -686,7 +687,7 @@ extern cnc_mcerr __cnc_single_from_multi_conversion(cnc_conversion* __conversion
return __err;
}
// if we reach here, we just simply do not have enough input: bail out
return cnc_mcerr_incomplete_input;
ZTD_UNREACHABLE();
}

extern cnc_open_err __cnc_add_default_registry_entries(
Expand Down

0 comments on commit d91dbf6

Please sign in to comment.