2 Commits

3 changed files with 57 additions and 2 deletions

View File

@@ -0,0 +1,48 @@
From 287d4f7030a9d3803503938e7e75ec6a52d906fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Sun, 24 Nov 2024 01:03:02 +0100
Subject: [PATCH] Fix compile error due to apparent invalid cast
IVinit expects the int(eger) initialization value as second parameter,
not a pointer. Replace the apparent (void *) NULL with an integer 0,
as that is likely the correct value (In 1996, both NULL and where
typically the same 32 bit value). Though, the value is likely irrelevant
as the allocated array is filled by IVcopy next.
---
ETree/src/transform.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ETree/src/transform.c b/ETree/src/transform.c
index 1e36981..dbdfc70 100644
--- a/ETree/src/transform.c
+++ b/ETree/src/transform.c
@@ -291,7 +291,7 @@ etree2 = ETree_compress(etree, mapIV) ;
remap the nzeros[] vector
-------------------------
*/
-temp = IVinit(nfront, NULL) ;
+temp = IVinit(nfront, 0) ;
IVcopy(nfront, temp, nzeros) ;
IV_setSize(nzerosIV, nnew) ;
nzeros = IV_entries(nzerosIV) ;
@@ -453,7 +453,7 @@ etree2 = ETree_compress(etree, mapIV) ;
remap the nzeros[] vector
-------------------------
*/
-temp = IVinit(nfront, NULL) ;
+temp = IVinit(nfront, 0) ;
IVcopy(nfront, temp, nzeros) ;
IV_setSize(nzerosIV, nnew) ;
nzeros = IV_entries(nzerosIV) ;
@@ -614,7 +614,7 @@ etree2 = ETree_compress(etree, mapIV) ;
remap the nzeros[] vector
-------------------------
*/
-temp = IVinit(nfront, NULL) ;
+temp = IVinit(nfront, 0) ;
IVcopy(nfront, temp, nzeros) ;
IV_setSize(nzerosIV, nnew) ;
nzeros = IV_entries(nzerosIV) ;
--
2.47.0

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Nov 24 00:29:29 UTC 2024 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Fix build failure due to stricter GCC checks, add
0001-Fix-compile-error-due-to-apparent-invalid-cast.patch
-------------------------------------------------------------------
Tue Oct 24 08:19:51 UTC 2023 - Nicolas Morey <nicolas.morey@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package spooles
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -56,6 +56,7 @@ Source0: https://www.netlib.org/linalg/spooles/spooles.2.2.tgz
Patch0: patch-spooles-shared
Patch1: patch-spooles-shared-mpi
Patch2: patch-spooles-I2Ohash-from-debian
Patch3: 0001-Fix-compile-error-due-to-apparent-invalid-cast.patch
%if %{with mpi}
# By pulling openmpi-macros-devel,
# we always get the current "default" implementation