[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:

Note that the warning defaults to an error, so you have to explicitly  
pass -Winvalid-noreturn to make it a warning.  Thanks Benjamin,


More information about the cfe-commits mailing list