all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bogus byte-compiler warnings
@ 2006-11-12 13:27 Reiner Steib
  2006-11-13  9:44 ` Richard Stallman
  0 siblings, 1 reply; 12+ messages in thread
From: Reiner Steib @ 2006-11-12 13:27 UTC (permalink / raw)


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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-12-01 17:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1GjIng-0005ML-HG@monty-python.gnu.org>
2006-11-12 21:47 ` Bogus byte-compiler warnings Jonathan Yavner
2006-11-13  0:57   ` Drew Adams
2006-11-12 13:27 Reiner Steib
2006-11-13  9:44 ` Richard Stallman
2006-11-13 11:27   ` Reiner Steib
2006-11-16 17:31   ` Chong Yidong
2006-11-16 18:51     ` Davis Herring
2006-11-19  7:59     ` Richard Stallman
2006-11-19 15:18       ` Chong Yidong
2007-12-01 11:29         ` Reiner Steib
2007-12-01 16:47           ` Dan Nicolaescu
2007-12-01 17:33             ` Reiner Steib

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.