From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#23640: 25.1.50; Getting rid of compiler warnings Date: Wed, 1 Jun 2016 14:10:48 -0700 Organization: UCLA Computer Science Department Message-ID: <2b96b91c-cb05-59a5-0458-05239b26da1b@cs.ucla.edu> References: <574E9E50.6040301@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1464816475 24933 80.91.229.3 (1 Jun 2016 21:27:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2016 21:27:55 +0000 (UTC) Cc: 23640@debbugs.gnu.org, andrewjmoreton@gmail.com To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 01 23:27:43 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 1b8Dfz-0000oK-1K for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jun 2016 23:27:43 +0200 Original-Received: from localhost ([::1]:44211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8Dfy-0007nz-9o for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jun 2016 17:27:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8DPu-0002g8-E0 for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2016 17:11:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8DPq-0008QM-6E for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2016 17:11:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8DPq-0008QI-2A for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2016 17:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b8DPp-0001EN-SK for bug-gnu-emacs@gnu.org; Wed, 01 Jun 2016 17:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jun 2016 21:11: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.14648154574719 (code B ref 23640); Wed, 01 Jun 2016 21:11:01 +0000 Original-Received: (at 23640) by debbugs.gnu.org; 1 Jun 2016 21:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:50205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8DPk-0001E3-Op for submit@debbugs.gnu.org; Wed, 01 Jun 2016 17:10:56 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8DPj-0001Dp-8x for 23640@debbugs.gnu.org; Wed, 01 Jun 2016 17:10:55 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7C8231613C6; Wed, 1 Jun 2016 14:10:49 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 6rmEaGmYpMjm; Wed, 1 Jun 2016 14:10:48 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C97BD1613CC; Wed, 1 Jun 2016 14:10:48 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 83_nYLRGeFca; Wed, 1 Jun 2016 14:10:48 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id AD7271613C6; Wed, 1 Jun 2016 14:10:48 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 In-Reply-To: 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:118954 Archived-At: On 06/01/2016 01:37 PM, Richard Stallman wrote: > A macro UNUSED_LISP could handle the first. Yes, we could have separate macros for each data type requiring syntactically different initializers. Something like this, say: int n UNUSED_0; Lisp_Object obj UNUSED_Qnil; instead of the current: int n IF_LINT (= 0); Lisp_Object obj IF_LINT (= Qnil); We could easily change the code in that way. Is it worth the trouble? > What is the reason for writing IF_LINT (volatile) > instead of just volatile? Primarily, to tell the reader that the 'volatile' is not needed for correctness; it's present only to pacify a buggy compiler or lint checker. (In this case, it pacifies GCC; see GCC bug#54561.) It's basically the same reason the code uses 'IF_LINT (= 0)' rather than '= 0'.