This is an automated email from the ASF dual-hosted git repository.

qianzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new 2df3409  Backported fix for picojson -Wparentheses warning with recent 
GCC.
2df3409 is described below

commit 2df3409b7eef3caa495f071a0a26f07a9d08327e
Author: Charles-Francois Natali <[email protected]>
AuthorDate: Sun Jun 13 21:48:53 2021 +0800

    Backported fix for picojson -Wparentheses warning with recent GCC.
    
    This closes #392
---
 3rdparty/picojson-1.3.0.patch | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/3rdparty/picojson-1.3.0.patch b/3rdparty/picojson-1.3.0.patch
index 5d1716a..d3219d6 100644
--- a/3rdparty/picojson-1.3.0.patch
+++ b/3rdparty/picojson-1.3.0.patch
@@ -204,3 +204,28 @@ index ed9656d..b04ed59 100644
  }
 --
 2.17.1
+From 62b52d4c43531cfb285c2c72c785485b84911867 Mon Sep 17 00:00:00 2001
+From: Charles-Francois Natali <[email protected]>
+Date: Sat, 12 Jun 2021 18:50:18 +0100
+Subject: [PATCH] Backported fix for -Wparentheses warning with recent GCC
+ versions.
+
+---
+ picojson.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/picojson.h b/picojson.h
+index 48bb64e..ae4fda6 100644
+--- a/picojson.h
++++ b/picojson.h
+@@ -301,7 +301,7 @@ namespace picojson {
+   GET(array, *u_.array_)
+   GET(object, *u_.object_)
+ #ifdef PICOJSON_USE_INT64
+-  GET(double, (type_ == int64_type && (const_cast<value*>(this)->type_ = 
number_type, const_cast<value*>(this)->u_.number_ = u_.int64_), u_.number_))
++  GET(double, (type_ == int64_type && (const_cast<value*>(this)->type_ = 
number_type, (const_cast<value*>(this)->u_.number_ = u_.int64_)), u_.number_))
+   GET(int64_t, u_.int64_)
+ #else
+   GET(double, u_.number_)
+--
+2.30.2

Reply via email to