[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-commits
Subject:    Re: [cfe-commits] [PATCH] downgrade an error to a warning to
From:       Chris Lattner <clattner () apple ! com>
Date:       2009-05-31 19:36:56
Message-ID: 99575A9A-889F-4CFF-BA90-C1F95BBA2C15 () apple ! com
[Download RAW message or body]


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
_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic