ports/164381: [PATCH] editors/uemacs; build with CLang
Andrew Clarke
mail at ozzmosis.com
Sun Jan 22 19:30:12 UTC 2012
>Number: 164381
>Category: ports
>Synopsis: [PATCH] editors/uemacs; build with CLang
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 22 19:30:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Andrew Clarke
>Release: FreeBSD 8.2-RELEASE-p3 amd64
>Organization:
>Environment:
>Description:
Patch editors/uemacs to build with CLang.
>How-To-Repeat:
# cd /usr/ports/editors/uemacs
# make
..
./src/eval.c:1483:3: error: non-void function 'setwlist' should return a value [-Wreturn-type]
return;
^
./src/eval.c:1495:2: error: non-void function 'setwlist' should return a value [-Wreturn-type]
return;
^
>Fix:
Patch attached with submission follows:
--- /usr/ports/editors/uemacs/work/src/eval.c 1996-01-02 20:13:24.000000000 +1100
+++ src/eval.c 2012-01-23 06:07:26.878469857 +1100
@@ -1480,7 +1480,7 @@
/* if we are turning this facility off, just flag so */
if (wclist == NULL || *wclist == 0) {
wlflag = FALSE;
- return;
+ return NULL;
}
/* first clear the table */
@@ -1492,7 +1492,7 @@
while (*wclist)
wordlist[(unsigned char)(*wclist++)] = TRUE; /* ep */
wlflag = TRUE;
- return;
+ return NULL;
}
/* getwlist: place in a buffer a list of characters
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list