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 */

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Mon, 05 Nov 2012 16:04:12 +0100
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. :)
Received on Mon Nov 05 2012 - 14:04:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:31 UTC