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

Commit e98eb9e6 authored by Krzysztof Kosiński's avatar Krzysztof Kosiński
Browse files

Explicitly discard released proto strings.

In newer releases of the protobuf library, the release_* methods
are marked [[nodiscard]], which causes a compilation error here.

Bug: 203713560
Test: presubmit
Change-Id: I44a9d52730bdc199e34cb25be959a955fff8f128
parent 8ca6061a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1287,8 +1287,8 @@ int IncrementalService::addBindMount(IncFsMount& ifs, StorageId storage,
        bp.set_allocated_dest_path(&target);
        bp.set_allocated_source_subdir(&source);
        const auto metadata = bp.SerializeAsString();
        bp.release_dest_path();
        bp.release_source_subdir();
        static_cast<void>(bp.release_dest_path());
        static_cast<void>(bp.release_source_subdir());
        mdFileName = makeBindMdName();
        metadataFullPath = path::join(ifs.root, constants().mount, mdFileName);
        auto node = mIncFs->makeFile(ifs.control, metadataFullPath, 0444, idFromMetadata(metadata),