Add NOLINT to ABSL_ASSUME() definition This is the same thing ABSL_ASSERT() does to prevent warnings such as misc-static-assert from firing. PiperOrigin-RevId: 943702210 Change-Id: I11f5886f42bc94e9a596d3400a66f597cec8e3ee
diff --git a/absl/base/optimization.h b/absl/base/optimization.h index bce5ec5..8247ef2 100644 --- a/absl/base/optimization.h +++ b/absl/base/optimization.h
@@ -267,7 +267,7 @@ // #if !defined(NDEBUG) #define ABSL_ASSUME(cond) \ - (ABSL_PREDICT_TRUE((cond)) ? void() : assert(false && #cond)) + (ABSL_PREDICT_TRUE((cond)) ? void() : assert(false && #cond)) // NOLINT #elif ABSL_HAVE_BUILTIN(__builtin_assume) #define ABSL_ASSUME(cond) __builtin_assume(cond) #elif defined(_MSC_VER)