Page MenuHomePhabricator

Fix deprecated ByteSize() for protobuf >= 3.1
ClosedPublic

Authored by Fabien on May 28 2020, 10:04.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABCeb87697b0e40: Fix deprecated ByteSize() for protobuf >= 3.1
Summary

Based on the reverted D5386 but accounting on protobuf version to remain
compatible.
Note that autotools will still have the warning.

Test Plan

With protobuf >= 3.1:

ninja check

Make sure the warning is gone.

Run the gitian builds.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fix_warning_deprecated_protobuf_bytesize
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 11060
Build 20512: Default Diff Build & Tests
Build 20511: Build without Wallet
Build 20510: Build with clang-10
Build 20509: arc lint + arc unit

Event Timeline

Fabien requested review of this revision.May 28 2020, 10:04
deadalnix added inline comments.
src/qt/CMakeLists.txt
257

Can we simply require 3.1 and on? debian stable ship with 3.6 so that should be alright.

src/qt/CMakeLists.txt
257

That would prevent from building on any Ubuntu LTS prior to the latest one which is only 1 month old.

This revision is now accepted and ready to land.May 28 2020, 14:30