[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bogus byte-compiler warnings

From: Reiner Steib
Subject: Bogus byte-compiler warnings
Date: Sun, 12 Nov 2006 14:27:51 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux)


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))

(defun foo-func-2 ()
  (and (boundp 'foo-var)
       (fboundp '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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]