Date: Mon, 21 Aug 2017 20:44:07 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448493 - head/devel/protobuf/files Message-ID: <201708212044.v7LKi7MB002326@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708212044.v7LKi7MB002326>