Date: Sun, 22 Jan 2012 19:24:42 GMT From: Andrew Clarke <mail@ozzmosis.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/164381: [PATCH] editors/uemacs; build with CLang Message-ID: <201201221924.q0MJOgnK011023@red.freebsd.org> Resent-Message-ID: <201201221930.q0MJUB1f081082@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201221924.q0MJOgnK011023>