File 0001-Avoid-non-standard-initialization-from-integer-expre.patch of Package elpa

From 9b442d0e5f06ee6f9ca6d79dac33835611b813c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Sun, 12 Feb 2023 21:27:30 +0100
Subject: [PATCH] Avoid non-standard initialization from integer expression

C allows, but does not require initializing from an integer. GCC only
supports this with 8.1.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69960
---
 src/elpa_index.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/elpa_index.c b/src/elpa_index.c
index dc7751f..72d9f0d 100644
--- a/src/elpa_index.c
+++ b/src/elpa_index.c
@@ -61,11 +61,8 @@ int max_threads_glob;
 int max_threads_glob_1;
 int set_max_threads_glob=0;
 int set_max_threads_glob_1=0;
-#ifdef WITH_AMD_GPU_VERSION
+
 #define default_max_stored_rows 256
-#else
-int const default_max_stored_rows = 256;
-#endif
 
 static int enumerate_identity(elpa_index_t index, int i);
 static int cardinality_bool(elpa_index_t index);
-- 
2.39.0

openSUSE Build Service is sponsored by