ports/cad/jspice3/files/patch-src_bin_help.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
269 B
C

--- src/bin/help.c.intermediate 2014-08-18 06:30:22.000000000 +0000
+++ src/bin/help.c
@@ -53,7 +53,7 @@ XErrorEvent *errorev;
XGetErrorText(display, errorev->error_code, ErrorMessage, 1024);
printf(ErrorMessage);
- return;
+ return (NULL);
}