File 0001-return-value-from-non-void-function.patch of Package arangodb3

From d2552f888d2e9a6e1f279aeee272b1c3e722bcf2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Thu, 9 Sep 2021 18:14:21 +0200
Subject: [PATCH 1/7] return value from non-void function
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Klaus Kämpf <kkaempf@suse.de>
---
 3rdParty/s2geometry/0e7b146/src/s2/encoded_s2point_vector.h | 1 +
 3rdParty/s2geometry/0e7b146/src/s2/s2winding_operation.cc   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/3rdParty/s2geometry/0e7b146/src/s2/encoded_s2point_vector.h b/3rdParty/s2geometry/0e7b146/src/s2/encoded_s2point_vector.h
index 19f0730c444..c69ff14dcee 100644
--- a/3rdParty/s2geometry/0e7b146/src/s2/encoded_s2point_vector.h
+++ b/3rdParty/s2geometry/0e7b146/src/s2/encoded_s2point_vector.h
@@ -134,6 +134,7 @@ inline S2Point EncodedS2PointVector::operator[](int i) const {
       S2_DLOG(FATAL) << "Unrecognized format";
       return S2Point();
   }
+  return S2Point();
 }
 
 }  // namespace s2coding
diff --git a/3rdParty/s2geometry/0e7b146/src/s2/s2winding_operation.cc b/3rdParty/s2geometry/0e7b146/src/s2/s2winding_operation.cc
index b18fbeb2506..4a96b81bab7 100644
--- a/3rdParty/s2geometry/0e7b146/src/s2/s2winding_operation.cc
+++ b/3rdParty/s2geometry/0e7b146/src/s2/s2winding_operation.cc
@@ -410,6 +410,7 @@ bool WindingLayer::MatchesRule(int winding) const {
     case WindingRule::NON_ZERO:  return winding != 0;
     case WindingRule::ODD:       return (winding & 1) != 0;
   }
+  return false;
 }
 
 bool WindingLayer::MatchesDegeneracy(int winding, int winding_minus,
-- 
2.39.2

openSUSE Build Service is sponsored by