mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 07:00:31 -04:00
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.
11 lines
269 B
C
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);
|
|
}
|
|
|
|
|