Bug #83074 Building protobuf gives deprecation warnings on macOS 10.12
Submitted: 21 Sep 2016 8:59 Modified: 21 Sep 2016 13:26
Reporter: Jon Olav Hauglid Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.1 OS:Any
Assigned to: CPU Architecture:Any

[21 Sep 2016 8:59] Jon Olav Hauglid
Building 8.0 on macOS 10.12 gives tons of deprecation warnings like this:
In file included from ./jhauglid/repo/mysql/extra/protobuf/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:
In file included from ./jhauglid/repo/mysql/extra/protobuf/protobuf-2.6.1/src/google/protobuf/stubs/atomicops.h:184:
./jhauglid/repo/mysql/extra/protobuf/protobuf-2.6.1/src/google/protobuf/stubs/atomicops_internals_macosx.h:73:10: warning: 'OSAtomicAdd32Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic> instead [-Wdeprecated-declarations]
  return OSAtomicAdd32Barrier(increment, const_cast<Atomic32*>(ptr));

How to repeat:
Build 8.0 on macOS 10.12.

Suggested fix:
Disable deprecation warnings when building protobuf.
[21 Sep 2016 13:26] Paul Dubois
Posted by developer:
Fixed in 8.0.1.

Code cleanup. No changelog entry needed.