diff --git a/src/base/macros.h b/src/base/macros.h index 329c5a9063..72ef64cfbe 100644 --- a/src/base/macros.h +++ b/src/base/macros.h @@ -388,6 +388,9 @@ bool is_inbounds(float_t v) { constexpr bool kUpperBoundIsMax = static_cast(kUpperBound) == static_cast(std::numeric_limits::max()); + // Using USE(var) is only a workaround for a GCC 8.1 bug. + USE(kLowerBoundIsMin); + USE(kUpperBoundIsMax); return (kLowerBoundIsMin ? (kLowerBound <= v) : (kLowerBound < v)) && (kUpperBoundIsMax ? (v <= kUpperBound) : (v < kUpperBound)); }