[cfe-commits] [PATCH] downgrade an error to a warning to match gcc's behavior
Chris Lattner
clattner at apple.com
Sun May 31 12:36:56 PDT 2009
On May 30, 2009, at 8:20 AM, Benjamin Kramer wrote:
> void f3() __attribute__((noreturn));
>
> void f3() {
> return;
> }
>
> for this test case clang emits an error while gcc just warns.
Patch applied here with tweaks:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090525/017824.html
Note that the warning defaults to an error, so you have to explicitly
pass -Winvalid-noreturn to make it a warning. Thanks Benjamin,
-Chris
More information about the cfe-commits
mailing list