Brown paper bag fix

...of 87369ad7b8 "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:
Stephan Bergmann 2022-02-28 21:14:11 +01:00
parent 30c302cf48
commit 8597748c42

View file

@ -21,7 +21,7 @@
#if defined __cpp_lib_unreachable
#define O3TL_UNREACHABLE ::std::unreachable
#define O3TL_UNREACHABLE (::std::unreachable())
#else