1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Error on no return type warning

Added non-existing noreturn destructor to fmt::throw_exception (for clang).
This commit is contained in:
Nekotekina 2021-01-06 23:33:09 +03:00
parent 9ba8f4795c
commit 1dcf5e4f85
2 changed files with 3 additions and 2 deletions

View File

@ -296,6 +296,8 @@ namespace fmt
static constexpr fmt_type_info type_list[sizeof...(Args) + 1]{fmt_type_info::make<fmt_unveil_t<Args>>()...};
raw_throw_exception({line, col, file, func}, reinterpret_cast<const char*>(fmt), type_list, fmt_args_t<Args...>{fmt_unveil<Args>::get(args)...});
}
[[noreturn]] ~throw_exception();
};
template <typename CharT, usz N, typename... Args>

View File

@ -30,8 +30,7 @@ else()
add_compile_options(-Werror=old-style-cast)
add_compile_options(-Werror=sign-compare)
add_compile_options(-Werror=reorder)
add_compile_options(-Wno-return-type)
add_compile_options(-Werror=return-type)
#TODO Clean the code so these are removed
add_compile_options(-Wno-unused-variable)