Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86ae67d3 authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

Merge "Suppress a static-analyzer warning" am: 883b3433

am: 39f89c65

Change-Id: I4924052680b49a560c63296c99b9a16cd55c30a9
parents a33c8e8e 39f89c65
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -365,6 +365,8 @@ bool AString::endsWithIgnoreCase(const char *suffix) const {
// static
// static
AString AString::FromParcel(const Parcel &parcel) {
AString AString::FromParcel(const Parcel &parcel) {
    size_t size = static_cast<size_t>(parcel.readInt32());
    size_t size = static_cast<size_t>(parcel.readInt32());
    // The static analyzer incorrectly reports a false-positive here in c++17.
    // https://bugs.llvm.org/show_bug.cgi?id=38176 . NOLINTNEXTLINE
    return AString(static_cast<const char *>(parcel.readInplace(size)), size);
    return AString(static_cast<const char *>(parcel.readInplace(size)), size);
}
}