From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Bogus byte-compiler warnings Date: Sun, 12 Nov 2006 14:27:51 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163338137 21866 80.91.229.2 (12 Nov 2006 13:28:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2006 13:28:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 14:28:54 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GjFOE-0003PC-8M for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2006 14:28:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjFOD-00085X-Mm for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2006 08:28:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GjFNu-00084O-1P for emacs-devel@gnu.org; Sun, 12 Nov 2006 08:28:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GjFNt-000848-Ke for emacs-devel@gnu.org; Sun, 12 Nov 2006 08:28:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjFNt-000845-9m for emacs-devel@gnu.org; Sun, 12 Nov 2006 08:28:29 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GjFNt-0008QC-7I for emacs-devel@gnu.org; Sun, 12 Nov 2006 08:28:29 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GjFNk-0003Km-C4 for emacs-devel@gnu.org; Sun, 12 Nov 2006 14:28:20 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Nov 2006 14:28:20 +0100 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Nov 2006 14:28:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) Cancel-Lock: sha1:dDTx4K78qGdmxf52xeIV1GfQjPo= 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:62115 Archived-At: Hi, when byte-compiling the following file (cf. `gnus-display-time-event-handler' in `gnus-start.el')... --8<---------------cut here---------------start------------->8--- (defun foo-func-1 () (when (and (boundp 'foo-var) (fboundp 'foo-1)) (foo-1))) (defun foo-func-2 () (and (boundp 'foo-var) (fboundp 'foo-2) (foo-2))) ;; Cf. `gnus-display-time-event-handler' in `gnus-start.el' --8<---------------cut here---------------end--------------->8--- ... I get: ,---- | In end of data: | rs-byte-compile-warnings.el:11:1:Warning: the function `foo-1' is not known to | be defined. `---- foo-1 will not be called if it's not fbound. (Emacs complains about both, foo-1 and foo-2). Maybe this warning could be avoided (after the release?). Does it make sense to change `gnus-display-time-event-handler' in `gnus-start.el' to the form of `foo-func-2' just to avoid the warning? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/