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:
None 
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
Description:
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.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.