[Top][All Lists]

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

Re: cc-vars.el

From: Stefan Monnier
Subject: Re: cc-vars.el
Date: Thu, 21 Nov 2002 13:55:07 -0500

>     There's already a macro to turn off warnings for variables: (defvar foo).
>     I suggested to do the same for (defun bar), but IIRC Richard vetoed it
>     because he thinks pragmas to turn off some warnings are just wrong.
> I don't think it is wrong necessarily.  However, what would (defun bar)
> actually do?  Would it be a magic flag just for the compiler?

Yes, just like (defvar foo): it wouldn't define the function but would
instead just declare that there exist such a function somewhere and
that the byte-compiler should consequently not emit any warning about it.

But it's more important to focus on the (if (fboundp ...) ...) case.


reply via email to

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