emacs-devel
[Top][All Lists]
Advanced

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

Re: How to cause a compiler warning?


From: João Távora
Subject: Re: How to cause a compiler warning?
Date: Sun, 14 Jan 2024 15:43:51 +0000

On Sun, Jan 14, 2024, 13:01 Alan Mackenzie <acm@muc.de> wrote:

> > I would like to make the cond* macro generate warnings in certain
> > cases, when it is being copiled.  What is the recommended way to do
> > that?

> Probably call byte-compile-warn at macro-expansion time?

Most assuredly not.  This may give an incorrect file position for the
warning.

Aight, I wasnt thaaat far off the mark..

Since 29.1, the correct function for a warning has been
byte-compile-warn-x.

Self-evidently so, of course, the 'x' standing for "correct". Anyway, what about <29 compatible code?

João

reply via email to

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