[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master c8bde5b0a3: Fix two no-X compilation warnings
From: |
Po Lu |
Subject: |
Re: master c8bde5b0a3: Fix two no-X compilation warnings |
Date: |
Wed, 23 Mar 2022 19:48:42 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Po Lu <luangruo@yahoo.com> writes:
>
>> I thought the right thing to do in this particular situation was to add
>> a defvar form that read something like this:
>>
>> (defvar x-resource-name)
>
> That would hide the compilation warning, too -- but if the code actually
> ends up being called, it'll bug out. (That's not very likely in this
> case, though.)
Hmm, thanks for explaining. But I thought defvar didn't do anything
with variables that are already defined, such as in C code.
Thanks.