From owner-cvs-all Sun Apr 28 5: 7:14 2002 Delivered-To: cvs-all@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id B0CD037B400; Sun, 28 Apr 2002 05:07:07 -0700 (PDT) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 28 Apr 2002 13:07:06 +0100 (BST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/moused moused.c In-Reply-To: Your message of "Sun, 28 Apr 2002 04:59:31 PDT." <200204281159.g3SBxVt26680@freefall.freebsd.org> Date: Sun, 28 Apr 2002 13:07:06 +0100 From: Ian Dowse Message-ID: <200204281307.aa21187@salmon.maths.tcd.ie> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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