Skip to content

Commit

Permalink
Avoid warning of non returning function (#34)
Browse files Browse the repository at this point in the history
Add a empty return since some compiler like to warn if there is not
return available outside of the catch blocks
  • Loading branch information
a4z authored May 26, 2021
1 parent f9be797 commit 60ab992
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions djinni/cwrapper/wrapper_marshal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ djinni::Handle<DjinniPythonExceptionHandle> djinni::cw_default_get_py_exception(
return ExceptionState::newHandle(s_djinni_create_py_from_cpp_exception(e_mesg.release()));
}
assert(false);
return {}; //avoid compiler warning not returning anything
}

// The argument is an exception_ptr for either a std::exception or a subclass of std::exception called py_exception
Expand Down

0 comments on commit 60ab992

Please sign in to comment.