Subject: Re: bug#24128: 25.1; Strange warning from byte compiler in gud.el and gdb-mi.el

From: Michael Heerdegen <[email-masked]>
Date: Mon, 01 Aug 2016 22:37:39 +0200

Eli Zaretskii <[email-masked]> writes:

> When these two files are compiled, the byte compiler emits strange
> warnings:
>
>     ELC      progmodes/gdb-mi.elc
>
>   In toplevel form:
>   progmodes/gdb-mi.el:675:1:Warning: Unused lexical argument `arg'
>
>     ELC      progmodes/gud.elc
>
>   In toplevel form:
>   progmodes/gud.el:735:1:Warning: Unused lexical argument `arg'
>

> What is going on here?

I think the warnings come from compiling some lambda created by the
macro `gud-def', and the determined positions are just incorrect.

Michael.