From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Science to suppress compiler warnings Date: Wed, 03 Jun 2009 13:33:32 -0400 Message-ID: References: <87fxeigro9.wl%xma@gnu.org> <87ab4phenq.wl%xma@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244050431 6777 80.91.229.12 (3 Jun 2009 17:33:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2009 17:33:51 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Xavier Maillard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 03 19:33:47 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MBuLS-0006os-OZ for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2009 19:33:47 +0200 Original-Received: from localhost ([127.0.0.1]:37455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBuLR-0002Ke-Rk for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2009 13:33:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBuLM-0002Jb-QV for emacs-devel@gnu.org; Wed, 03 Jun 2009 13:33:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBuLH-0002HJ-R6 for emacs-devel@gnu.org; Wed, 03 Jun 2009 13:33:39 -0400 Original-Received: from [199.232.76.173] (port=34244 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBuLH-0002HG-Kz for emacs-devel@gnu.org; Wed, 03 Jun 2009 13:33:35 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:31791 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBuLG-000657-8c; Wed, 03 Jun 2009 13:33:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEEAOdQJkpLd+nI/2dsb2JhbACBT9BIhAsFhgY X-IronPort-AV: E=Sophos;i="4.41,299,1241409600"; d="scan'208";a="39572773" Original-Received: from 75-119-233-200.dsl.teksavvy.com (HELO ceviche.home) ([75.119.233.200]) by ironport2-out.teksavvy.com with ESMTP; 03 Jun 2009 13:33:33 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C3BC0B45E4; Wed, 3 Jun 2009 13:33:32 -0400 (EDT) In-Reply-To: <87ab4phenq.wl%xma@gnu.org> (Xavier Maillard's message of "Wed, 03 Jun 2009 11:04:09 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111321 Archived-At: >> >> (eval-when-compile (defvar foo nil)) >> > (eval-when-compile (defvar foo)) >> Aka just >> (defvar foo) > Could you explain to me why ? Because (defvar FOO) is defined to do exactly that: tell the compiler to shut up, while not affecting the runtime at all. Stefan