From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3015 invoked by alias); 23 Jan 2014 18:57:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 3004 invoked by uid 89); 23 Jan 2014 18:57:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_WEB autolearn=no version=3.3.2 X-HELO: batou.ecranbleu.org Received: from batou.ecranbleu.org (HELO batou.ecranbleu.org) (88.190.32.89) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Jan 2014 18:57:05 +0000 Received: by batou.ecranbleu.org (Postfix, from userid 999) id BE0FF12B5E0; Thu, 23 Jan 2014 19:57:03 +0100 (CET) Received: from [10.250.4.47] (corp-240.mv.mozilla.com [63.245.220.240]) (Authenticated sender: sylvestredeb@ledru.info) by batou.ecranbleu.org (Postfix) with ESMTPSA id 4B37212B40F for ; Thu, 23 Jan 2014 19:57:03 +0100 (CET) Message-ID: <52E165F8.7050805@debian.org> Date: Thu, 23 Jan 2014 18:57:00 -0000 From: Sylvestre Ledru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: Re: [Patch] PR55189 enable -Wreturn-type by default References: <52B4843D.3040804@debian.org> <52D836A0.60700@redhat.com> <52E163ED.3080300@redhat.com> In-Reply-To: <52E163ED.3080300@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg01530.txt.bz2 On 23/01/2014 10:48, Jason Merrill wrote: > On 01/16/2014 02:44 PM, Jason Merrill wrote: >> To avoid spurious warnings on code with infinite loops we could add a >> simple check for infinite loops and suppress the warning in that case. >> Basically, if we see a loop with an always-true condition and no breaks. > > Like so: > > Tested x86_64-pc-linux-gnu, applying to trunk. > Thanks for that! S