aae8484161
- Fix glpk-no_random_return.patch to return a value for a non-void function. OBS-URL: https://build.opensuse.org/request/show/737767 OBS-URL: https://build.opensuse.org/package/show/science/glpk?expand=0&rev=46
21 lines
701 B
Diff
21 lines
701 B
Diff
Index: glpk-4.65/src/draft/glpios01.c
|
|
===================================================================
|
|
--- glpk-4.65.orig/src/draft/glpios01.c
|
|
+++ glpk-4.65/src/draft/glpios01.c
|
|
@@ -1491,6 +1491,7 @@ int ios_add_row(glp_tree *tree, IOSPOOL
|
|
IOSCUT *ios_find_row(IOSPOOL *pool, int i)
|
|
{ /* find row (constraint) in the cut pool */
|
|
xassert(0);
|
|
+ return 0;
|
|
}
|
|
#else
|
|
IOSCUT *ios_find_row(IOSPOOL *pool, int i)
|
|
@@ -1550,6 +1551,7 @@ IOSCUT *ios_find_row(IOSPOOL *pool, int
|
|
void ios_del_row(glp_tree *tree, IOSPOOL *pool, int i)
|
|
{ /* remove row (constraint) from the cut pool */
|
|
xassert(0);
|
|
+ return;
|
|
}
|
|
#else
|
|
void ios_del_row(glp_tree *tree, IOSPOOL *pool, int i)
|