ports/cad/jspice3/files/patch-src_lib_sced_scedintr.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

11 lines
419 B
C

--- src/lib/sced/scedintr.c.orig 2001-05-01 20:54:05.000000000 +0000
+++ src/lib/sced/scedintr.c
@@ -1009,7 +1009,7 @@ char *string;
strcat(TypeOut,string);
else
strcat(TypeOut,"\n");
- if (strchr(TypeOut,'\n') == NULL) return;
+ if (strchr(TypeOut,'\n') == NULL) return (False);
if (MoreLine(TypeOut))
EnableMore(False);
*TypeOut = '\0';