Commit b62a976d authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 0

Mark FormatArg::error as noreturn

Summary: Because, if no inlining is enabled, the absence of this attribute caused compile errors due to functions that were expected to return a value not returning a value.

Reviewed By: meyering

Differential Revision: D3698413

fbshipit-source-id: 8f3505b17a2fa7b9710e3fb56d18c6ca00feacb3
parent 76a4de97
......@@ -211,7 +211,7 @@ inline std::string FormatArg::errorStr(Args&&... args) const {
}
template <typename... Args>
inline void FormatArg::error(Args&&... args) const {
[[noreturn]] inline void FormatArg::error(Args&&... args) const {
throw BadFormatArg(errorStr(std::forward<Args>(args)...));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment