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]
This commit is contained in:
Matthias Diener 2018-07-13 15:51:04 -05:00 committed by Adam J. Stewart
parent aec91d1cca
commit 2cf9c7955c
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- 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;

View file

@ -63,6 +63,8 @@ class Scotch(Package):
patch('esmumps-ldflags-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
# produces weird linker errors.
parallel = False