Skip to content
Snippets Groups Projects
Commit 2cf9c795 authored by Matthias Diener's avatar Matthias Diener Committed by Adam J. Stewart
Browse files

Scotch: fix compilation of 6.0.5a (#8704)

Prevent this error:

metis_graph_part.c:301:7: error: non-void function 'METIS_PartGraphVKway' should return a value
      [-Wreturn-type]
parent aec91d1c
No related branches found
No related tags found
No related merge requests found
--- a/src/libscotchmetis/metis_graph_part.c 2018-07-13 14:25:50.000000000 -0500
+++ b/src/libscotchmetis/metis_graph_part.c 2018-07-13 14:21:08.000000000 -0500
@@ -298,7 +298,7 @@
edgenbr = xadj[vertnbr] - baseval;
if ((edlotax = memAlloc (edgenbr * sizeof (SCOTCH_Num))) == NULL)
- return;
+ return (METIS_ERROR);
edlotax -= baseval; /* Base access to edlotax */
vsiztax = vsize2 - baseval;
...@@ -63,6 +63,8 @@ class Scotch(Package): ...@@ -63,6 +63,8 @@ class Scotch(Package):
patch('esmumps-ldflags-6.0.4.patch', when='@6.0.4') patch('esmumps-ldflags-6.0.4.patch', when='@6.0.4')
patch('metis-headers-6.0.4.patch', when='@6.0.4') patch('metis-headers-6.0.4.patch', when='@6.0.4')
patch('libscotchmetis-return-6.0.5a.patch', when='@6.0.5a')
# NOTE: In cross-compiling environment parallel build # NOTE: In cross-compiling environment parallel build
# produces weird linker errors. # produces weird linker errors.
parallel = False parallel = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment