1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/cad/jspice3/files/patch-src_lib_inp_ifeval.c
John Marino 643f83a81d Stage cad/jspice3 and unbreak on FreeBSD 10+
It would have been easy just to set this to "USE_GCC=any" to fix it,
but the code had plenty of undefined returns when a type was expected.
Using clang exposed those problems.  Hopefully I defined the missing
return values correctly.
2014-08-18 08:32:20 +00:00

12 lines
334 B
C

--- src/lib/inp/ifeval.c.orig 1997-03-21 22:04:12.000000000 +0000
+++ src/lib/inp/ifeval.c
@@ -37,7 +37,7 @@ double step, finaltime;
int i;
if (!tree)
- return;
+ return (OK);
for (i = 0; i < tree->numVars; i++)
init_node(pt->derivs[i],step,finaltime);
init_node(pt->tree,step,finaltime);