From: Junio C Hamano Date: Mon, 20 Jun 2011 21:17:32 GMT Subject: Re: [PATCH 2/3] Add a lot of dummy returns to avoid warnings with NO_NORETURN Message-ID: <7vsjr4b3tf.fsf@alter.siamese.dyndns.org> In-Reply-To: <1308445625-30667-2-git-send-email-andi@firstfloor.org> Andi Kleen writes: > From: Andi Kleen > > Add a lot of dummy returns to silence "control flow reaches > end of non void function" warnings with disabled noreturn. > > If NO_NORETURN is not disabled they will be all optimized away. I think this is probably a bad move, given that the previous patch is a temporary workaround until gcc 4.6 is fixed. With -Wunreachable-code on, 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).