Brown paper bag fix
...of87369ad7b8
"Use std::unreachable if available". (Unfortunately, Clang didn't warn about the thus meaningless uses of O3TL_UNREACHABLE, presumably due to <978cca9f49
> "Suppress all -Wunused-value warnings from macro body expansions.") (While at it, and as the expansion of O3TL_UNREACHABLE is now a nice full expression, wrap it in parentheses, as is common best practice for such macro definitions.) Change-Id: I555e6716ebb66172add686521446d90db6054845 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130729 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
30c302cf48
commit
8597748c42
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
#if defined __cpp_lib_unreachable
|
||||
|
||||
#define O3TL_UNREACHABLE ::std::unreachable
|
||||
#define O3TL_UNREACHABLE (::std::unreachable())
|
||||
|
||||
#else
|
||||
|
||||
|
|
Loading…
Reference in a new issue