diff options
Diffstat (limited to 'absl/base')
-rw-r--r-- | absl/base/macros.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/absl/base/macros.h b/absl/base/macros.h index cd7cf498..f33cd192 100644 --- a/absl/base/macros.h +++ b/absl/base/macros.h @@ -138,16 +138,4 @@ ABSL_NAMESPACE_END #define ABSL_INTERNAL_RETHROW do {} while (false) #endif // ABSL_HAVE_EXCEPTIONS -// Requires the compiler to prove that the size of the given object is at least -// the expected amount. -#if ABSL_HAVE_ATTRIBUTE(diagnose_if) && ABSL_HAVE_BUILTIN(__builtin_object_size) -#define ABSL_INTERNAL_NEED_MIN_SIZE(Obj, N) \ - __attribute__((diagnose_if(__builtin_object_size(Obj, 0) < N, \ - "object size provably too small " \ - "(this would corrupt memory)", \ - "error"))) -#else -#define ABSL_INTERNAL_NEED_MIN_SIZE(Obj, N) -#endif - #endif // ABSL_BASE_MACROS_H_ |