Re: [PATCH 2/3] Add a lot of dummy returns to avoid warnings with NO_NORETURN
- From
- Andi Kleen <andi@firstfloor.org>
- Date
- Jun 20, 2011, 22:03 UTC
- Message-ID
- <20110620220347.GE32765@one.firstfloor.org>
- In-Reply-To
- <7vfwn4b1vb.fsf@alter.siamese.dyndns.org>
> Sorry, I do not recall suggesting to add these dummy returns. The NO_NORETURN > workaround (your [1/3]) is what I remember.
It was just a logical followup to quelch the warning storm NO_NORETURN caused.
Show 12 quoted lines
> > >> these will introduce noise for build without NO_NORETURN (either when > >> profile feedback is not used, or when profile feedback build is in use and > >> it no longer requires the NO_NORETURN workaround). > > > > I fixed the noise in a followon patch. > > I suspect that we are talking about different warnings. > > The extra unreachable returns this patch adds will introduce more > "unreachable code" warnings, which was what my message you are responding > to is about.
Hmm I didn't see any additional warnings from the patch, neither in profile feedback nor in a normal build with gcc 4.5. Did I miss something?
-Andi