From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Science to suppress compiler warnings Date: Wed, 03 Jun 2009 10:40:20 +0200 Message-ID: References: <87fxeigro9.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 1244018489 27932 80.91.229.12 (3 Jun 2009 08:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2009 08:41:29 +0000 (UTC) Cc: 'Xavier Maillard' , emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 03 10:41:26 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 1MBm2F-0004mK-RI for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2009 10:41:24 +0200 Original-Received: from localhost ([127.0.0.1]:47340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBm2E-00084U-AM for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2009 04:41:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBm1R-0007e8-7S for emacs-devel@gnu.org; Wed, 03 Jun 2009 04:40:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBm1N-0007ay-0f for emacs-devel@gnu.org; Wed, 03 Jun 2009 04:40:32 -0400 Original-Received: from [199.232.76.173] (port=43088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBm1M-0007ak-BF for emacs-devel@gnu.org; Wed, 03 Jun 2009 04:40:28 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:40139) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBm1I-0006vH-2b; Wed, 03 Jun 2009 04:40:24 -0400 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id B9BD81C1576E; Wed, 3 Jun 2009 10:40:22 +0200 (CEST) Original-Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id 821559040D; Wed, 3 Jun 2009 10:40:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id i4HyuSZRaT0X; Wed, 3 Jun 2009 10:40:21 +0200 (CEST) Original-Received: from igel.home (DSL01.83.171.189.214.ip-pool.NEFkom.net [83.171.189.214]) by mail.mnet-online.de (Postfix) with ESMTP; Wed, 3 Jun 2009 10:40:21 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id BBA9F10DC7B; Wed, 3 Jun 2009 10:40:20 +0200 (CEST) X-Yow: There's a lot of BIG MONEY in MISERY if you have an AGENT!! In-Reply-To: (Drew Adams's message of "Tue, 2 Jun 2009 16:57:10 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:111307 Archived-At: "Drew Adams" writes: >> (eval-when-compile (defvar foo nil)) > > (eval-when-compile (defvar foo)) > > You don't give it a value; you just declare it (to the compiler). You don't even need eval-when-compile, since toplevel defvars are always seen by the compiler, and a defvar without a value never sets the variable. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."