svn commit: r448493 - head/devel/protobuf/files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Mon Aug 21 20:44:08 UTC 2017
Author: sunpoet
Date: Mon Aug 21 20:44:07 2017
New Revision: 448493
URL: https://svnweb.freebsd.org/changeset/ports/448493
Log:
Add upstream patch to fix warning with Clang 5+
Obtained from: https://github.com/google/protobuf/commit/5e39ecc569153db63bc4e1587f703c7894223375
Requested by: Kevin Bowling <kevin.bowling at kev009.com>
Added:
head/devel/protobuf/files/patch-src-google-protobuf-stubs-port.h (contents, props changed)
Added: head/devel/protobuf/files/patch-src-google-protobuf-stubs-port.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/protobuf/files/patch-src-google-protobuf-stubs-port.h Mon Aug 21 20:44:07 2017 (r448493)
@@ -0,0 +1,16 @@
+--- src/google/protobuf/stubs/port.h.orig 2017-08-15 23:39:12 UTC
++++ src/google/protobuf/stubs/port.h
+@@ -256,8 +256,11 @@ static const uint64 kuint64max = GOOGLE_
+ # define GOOGLE_PROTOBUF_USE_UNALIGNED 0
+ #else
+ // x86 and x86-64 can perform unaligned loads/stores directly.
+-# define GOOGLE_PROTOBUF_USE_UNALIGNED defined(_M_X64) || \
+- defined(__x86_64__) || defined(_M_IX86) || defined(__i386__)
++# if defined(_M_X64) || defined(__x86_64__) || defined(_M_IX86) || defined(__i386__)
++# define GOOGLE_PROTOBUF_USE_UNALIGNED 1
++# else
++# define GOOGLE_PROTOBUF_USE_UNALIGNED 0
++# endif
+ #endif
+
+ #if GOOGLE_PROTOBUF_USE_UNALIGNED
More information about the svn-ports-head
mailing list