From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#6740: Spurious byte compiler warnings Date: Tue, 27 Jul 2010 20:06:19 +0000 Message-ID: <20100727200619.GC2280@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280261283 4562 80.91.229.12 (27 Jul 2010 20:08:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2010 20:08:03 +0000 (UTC) To: 6740@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 22:08:02 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OdqRS-0002qM-Ml for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 22:07:59 +0200 Original-Received: from localhost ([127.0.0.1]:58618 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdqRS-0001An-2u for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 16:07:58 -0400 Original-Received: from [140.186.70.92] (port=50470 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdqRH-00013p-C9 for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 16:07:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdqR9-0003EC-Jq for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 16:07:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42431) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdqR9-0003E5-IT for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 16:07:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OdqFt-0000Mf-SY; Tue, 27 Jul 2010 15:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jul 2010 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6740 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12802605111390 (code B ref -1); Tue, 27 Jul 2010 19:56:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Jul 2010 19:55:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdqF4-0000MN-22 for submit@debbugs.gnu.org; Tue, 27 Jul 2010 15:55:10 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdqF2-0000MI-92 for submit@debbugs.gnu.org; Tue, 27 Jul 2010 15:55:08 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:43130) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OdqFA-0003AS-VD for submit@debbugs.gnu.org; Tue, 27 Jul 2010 15:55:17 -0400 Original-Received: from [140.186.70.92] (port=39457 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdqF9-0003uc-I6 for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 15:55:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdqF8-0001T7-Gu for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 15:55:15 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:3361 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdqF8-0001St-7J for bug-gnu-emacs@gnu.org; Tue, 27 Jul 2010 15:55:14 -0400 Original-Received: (qmail 22094 invoked by uid 3782); 27 Jul 2010 19:55:12 -0000 Original-Received: from acm.muc.de (pD9E52785.dip.t-dialin.net [217.229.39.133]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 27 Jul 2010 21:55:11 +0200 Original-Received: (qmail 3650 invoked by uid 1000); 27 Jul 2010 20:06:19 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 4.6-4.9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 27 Jul 2010 15:56:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38992 Archived-At: Hi, Emacs! (i) Start Emacs, even a most recent bzr version, with -Q. (ii) Put the following into the *scratch* buffer: (eval-when-compile (if (and (not (featurep 'cc-fix)) (featurep 'xemacs) (progn (require 'font-lock) (let (font-lock-keywords) (font-lock-compile-keywords '("\\<\\>")) font-lock-keywords))) (cc-load "cc-fix"))) (This fragment is at the top level, and taken from cc-defs.el.). (iii) do M-x compile-defun on this form. The byte compiler then issues the following two identical error messages: Warning: value returned from (featurep (quote cc-fix)) is unused Warning: value returned from (featurep (quote cc-fix)) is unused It is obvious that that value is indeed used. This is a bug. -- Alan Mackenzie (Nuremberg, Germany).