Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Nov 2012 16:04:12 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        Current FreeBSD <freebsd-current@freebsd.org>, Xin LI <delphij@FreeBSD.org>
Subject:   Re: CURRENT Revision: 242615: /usr/src/usr.bin/less/../less/defines.h:188:25: error: '/*' within block comment [-Werror,-Wcomment],#define CMDBUF_SIZE 512     /* Buffer for multichar commands */
Message-ID:  <5097D56C.5050709@FreeBSD.org>
In-Reply-To: <5097BC6B.5020809@zedat.fu-berlin.de>
References:  <5097BC6B.5020809@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-11-05 14:17, O. Hartmann wrote:
> While building world as of today, I receive this error:
>
>
> In file included from /usr/src/usr.bin/less/../../contrib/less/main.c:16:
> In file included from /usr/src/usr.bin/less/../../contrib/less/less.h:29:
> /usr/src/usr.bin/less/../less/defines.h:188:25: error: '/*' within block
> comment [-Werror,-Wcomment]
> #define CMDBUF_SIZE     512     /* Buffer for multichar commands */
>                                  ^
> 1 error generated.
> *** [main.o] Error code 1

It is caused by a typo in usr.bin/less/defines.h, in r242584, where Xin
imported a new version of less:

187 	#if 0 /* old sizes for small memory machines
188 	#define CMDBUF_SIZE 512 /* Buffer for multichar commands */

The "old sizes for small memory machines" comment is not properly
terminated.  Clang has the above warning specifically to ferret out such
typos. :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5097D56C.5050709>