This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch to not warn about infinite loops


>>>>> "Geoff" == Geoff Keating <geoffk@geoffk.org> writes:

>> From: Jason Merrill <jason@redhat.com>
>> 
>> Rather than add a new flag, I would think it would make sense to bundle
>> this in with -Wreturn-type.

> The two warnings seem to be different enough that they should have
> different flags.  

I disagree.  -Wreturn-type already warns about functions failing to return
a value.  My new warning was to fill a hole where -Wreturn-type was failing
to warn because we weren't running flow.  If it's going to be
conditionalized on a flag, that should be the one.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]