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:
parent
9ba8f4795c
commit
1dcf5e4f85
@ -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>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user