Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2002 13:07:06 +0100
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/moused moused.c 
Message-ID:   <200204281307.aa21187@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Sun, 28 Apr 2002 04:59:31 PDT." <200204281159.g3SBxVt26680@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200204281159.g3SBxVt26680@freefall.freebsd.org>, Ian Dowse writes:
>  Fix a number of warnings. A gcc preprocessor bug relating to macros
>  with variable numbers of arguments made this slightly harder than
>  it should be.

If anyone is interested, the gcc bug is triggered by

#define logwarn(fmt, args...) syslog(LOG_WARNING, fmt ": %m", ##args)
void f() {
	logwarn("eeek");
}

and it produces the output:

/tmp/in.c:3: unterminated string or character constant
/tmp/in.c:3: possible real start of unterminated constant
# 1 "/tmp/in.c"

void f() {
	syslog(LOG_WARNING,  "eeek"  ": 
 )
 ;
}

Ian

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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