From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#23640: 25.1.50; Getting rid of compiler warnings Date: Mon, 30 May 2016 07:39:47 -0400 Message-ID: <7db1f3b9-4464-055a-626b-2a21ae7ddfa8@cornell.edu> References: <83mvnaxb6u.fsf@gnu.org> <13ba9f48-d461-5e4d-7017-20b3aec2b98c@cornell.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1464608486 10818 80.91.229.3 (30 May 2016 11:41:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 May 2016 11:41:26 +0000 (UTC) Cc: 23640@debbugs.gnu.org, Paul Eggert , Andy Moreton To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 30 13:41:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b7LZI-0006Xn-F3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2016 13:41:12 +0200 Original-Received: from localhost ([::1]:59484 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7LZH-0001WO-MD for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 May 2016 07:41:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7LZC-0001W9-3R for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 07:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7LZ7-0003lE-Ue for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 07:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7LZ7-0003l6-RI for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 07:41:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b7LZ7-0002Pr-KD for bug-gnu-emacs@gnu.org; Mon, 30 May 2016 07:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 May 2016 11:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23640 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23640-submit@debbugs.gnu.org id=B23640.14646084099218 (code B ref 23640); Mon, 30 May 2016 11:41:01 +0000 Original-Received: (at 23640) by debbugs.gnu.org; 30 May 2016 11:40:09 +0000 Original-Received: from localhost ([127.0.0.1]:46893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7LYC-0002OY-Eh for submit@debbugs.gnu.org; Mon, 30 May 2016 07:40:08 -0400 Original-Received: from limerock04.mail.cornell.edu ([128.84.13.244]:32894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7LYA-0002O0-Uv for 23640@debbugs.gnu.org; Mon, 30 May 2016 07:40:03 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u4UBdn7f006832; Mon, 30 May 2016 07:39:49 -0400 Original-Received: from [192.168.1.3] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u4UBdl2P025724 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 30 May 2016 07:39:48 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 In-Reply-To: X-PMX-Cornell-Gauge: Gauge=XXXXX X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118857 Archived-At: On 5/29/2016 6:43 PM, Ken Brown wrote: > On 5/28/2016 5:47 PM, Ken Brown wrote: >> On 5/28/2016 2:57 PM, Eli Zaretskii wrote: >>> emacs_abort is declared with _Noreturn, so how come GCC doesn't shut >>> up about "unreachable" code? >> >> It looks like the problem is the definition of _Noreturn as a macro in >> config.h. I'll have to figure out what's going on. > > That guess was wrong. The problem turns out to be that lint is defined > in config.h. When lint is defined, Cygwin's defines > _Noreturn to be a macro with empty expansion. I've raised the question > on the Cygwin list > (https://www.cygwin.com/ml/cygwin/2016-05/msg00374.html) as to whether > that's a bug. The answer is that the Cygwin's is taken from FreeBSD, so the problem will exist there too. (I just checked the FreeBSD git repo and confirmed that the code in question is still there.) So it looks like defining lint should be disabled on Cygwin and FreeBSD, at least. Or maybe it should only be enabled on platforms where it's known that it doesn't cause problems. Paul, you're the one who introduced this. What do you think? Ken