From owner-svn-ports-all@freebsd.org Mon Aug 21 20:44:08 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8938DD109E; Mon, 21 Aug 2017 20:44:08 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83B9D868; Mon, 21 Aug 2017 20:44:08 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7LKi7e5002327; Mon, 21 Aug 2017 20:44:07 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7LKi7MB002326; Mon, 21 Aug 2017 20:44:07 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201708212044.v7LKi7MB002326@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Mon, 21 Aug 2017 20:44:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448493 - head/devel/protobuf/files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: head/devel/protobuf/files X-SVN-Commit-Revision: 448493 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2017 20:44:08 -0000 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 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