preprocessor/5520: There's a warning I miss with "if{} else{}" statement
Carlo Wood
carlo@alinoe.com
Mon Jan 28 18:16:00 GMT 2002
The following reply was made to PR preprocessor/5520; it has been noted by GNATS.
From: Carlo Wood <carlo@alinoe.com>
To: jbach1@caramail.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: preprocessor/5520: There's a warning I miss with "if{} else{}" statement
Date: Tue, 29 Jan 2002 03:09:21 +0100
On Mon, Jan 28, 2002 at 11:41:20PM -0000, jbach1@caramail.com wrote:
> I think a warning shoul be raised when someone writes
> if (condition);
Only *before* replacing macros please (if at all).
Macros can be empty and be used like:
if (condition)
POSSIBLY_EMPTY_MACRO;
--
Carlo Wood <carlo@alinoe.com>
More information about the Gcc-prs
mailing list