修改pods
This commit is contained in:
13
Pods/abseil/absl/container/inlined_vector.h
generated
13
Pods/abseil/absl/container/inlined_vector.h
generated
@@ -775,7 +775,20 @@ class InlinedVector {
|
||||
ABSL_HARDENING_ASSERT(pos >= begin());
|
||||
ABSL_HARDENING_ASSERT(pos < end());
|
||||
|
||||
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102329#c2
|
||||
// It appears that GCC thinks that since `pos` is a const pointer and may
|
||||
// point to uninitialized memory at this point, a warning should be
|
||||
// issued. But `pos` is actually only used to compute an array index to
|
||||
// write to.
|
||||
#if !defined(__clang__) && defined(__GNUC__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
#pragma GCC diagnostic ignored "-Wuninitialized"
|
||||
#endif
|
||||
return storage_.Erase(pos, pos + 1);
|
||||
#if !defined(__clang__) && defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
||||
// Overload of `InlinedVector::erase(...)` that erases every element in the
|
||||
|
||||
Reference in New Issue
Block a user