File 0005-gcc-thinks-constexpr-call-flows-off-the-end-of-the-f.patch of Package arangodb3

From 3301b0a0d29f0500208e632e2df630274b7fa6f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Wed, 8 Mar 2023 11:37:05 +0100
Subject: [PATCH 5/5] gcc thinks 'constexpr' call flows off the end of the
 function
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
---
 client-tools/FeaturePhases/BasicFeaturePhaseClient.h | 2 +-
 client-tools/Shell/ClientFeature.h                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client-tools/FeaturePhases/BasicFeaturePhaseClient.h b/client-tools/FeaturePhases/BasicFeaturePhaseClient.h
index 6dacf0f48d3..251bb873005 100644
--- a/client-tools/FeaturePhases/BasicFeaturePhaseClient.h
+++ b/client-tools/FeaturePhases/BasicFeaturePhaseClient.h
@@ -45,7 +45,7 @@ class BasicFeaturePhaseClient : public ApplicationFeaturePhase {
     if (Server::template contains<GreetingsFeaturePhase>()) {
       startsAfter<GreetingsFeaturePhase, Server>();
     }
-    if constexpr (Server::template contains<EncryptionFeature>()) {
+    if (Server::template contains<EncryptionFeature>()) {
       startsAfter<EncryptionFeature, Server>();
     }
     if (Server::template contains<SslFeature>()) {
diff --git a/client-tools/Shell/ClientFeature.h b/client-tools/Shell/ClientFeature.h
index f5a561b27a5..7462cddf973 100644
--- a/client-tools/Shell/ClientFeature.h
+++ b/client-tools/Shell/ClientFeature.h
@@ -64,7 +64,7 @@ class ClientFeature final : public HttpEndpointProvider {
     static_assert(Server::template isCreatedAfter<HttpEndpointProvider,
                                                   CommunicationFeaturePhase>());
 
-    if constexpr (Server::template contains<ShellConsoleFeature>()) {
+    if (Server::template contains<ShellConsoleFeature>()) {
       static_assert(Server::template isCreatedAfter<HttpEndpointProvider,
                                                     ShellConsoleFeature>());
       _console = &server.template getFeature<ShellConsoleFeature>();
-- 
2.39.2

openSUSE Build Service is sponsored by