File: scitokens-cpp-paren.patch

package info (click to toggle)
scitokens-cpp 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,152 kB
  • sloc: cpp: 53,244; python: 7,418; sh: 319; makefile: 85
file content (23 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From c8853367b0ad6ff6e76188e639a8e7f0706d4431 Mon Sep 17 00:00:00 2001
From: Dominik Thalhammer <dominik@thalhammer.it>
Date: Wed, 29 Jul 2020 20:36:56 +0200
Subject: [PATCH] Fix build failure with GCC10.1 and Werror

As found using jwt-cpp by @markus456 in issue Thalhammer/jwt-cpp#92
---
 picojson.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vendor/jwt-cpp/include/jwt-cpp/picojson.h b/vendor/jwt-cpp/include/jwt-cpp/picojson.h
index 346cf05..e127617 100644
--- a/vendor/jwt-cpp/include/jwt-cpp/picojson.h
+++ b/vendor/jwt-cpp/include/jwt-cpp/picojson.h
@@ -384,7 +384,7 @@ 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_),
+    (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