emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#24128: closed (25.1; Strange warning from byte compiler in gud.el an


From: GNU bug Tracking System
Subject: bug#24128: closed (25.1; Strange warning from byte compiler in gud.el and gdb-mi.el)
Date: Sat, 22 Jan 2022 18:18:03 +0000

Your message dated Sat, 22 Jan 2022 18:16:58 +0000
with message-id <YexKGvOcfTMQtFJD@ACM>
and subject line Re: bug#22288: 25.0.50; Incorrect line and column number in 
byte-compilation warning
has caused the debbugs.gnu.org bug report #22288,
regarding 25.1; Strange warning from byte compiler in gud.el and gdb-mi.el
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
22288: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22288
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 25.1; Strange warning from byte compiler in gud.el and gdb-mi.el Date: Mon, 01 Aug 2016 23:04:07 +0300
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'

But there's no "arg" anywhere in sight on those lines, which are
these:

(defun gdb (command-line)
(defun gud-gdb (command-line)

What is going on here?

In GNU Emacs 25.1.7 (i686-pc-mingw32)
 of 2016-08-01 built on HOME-C4E4A596F7
Repository revision: aa4271ab7299c033760db64bf15476a5e0eee2a5
Windowing system distributor 'Microsoft Corp.', version 5.1.2600
Configured using:
 'configure --prefix=/d/usr --enable-checking=yes,glyphs --with-wide-int
 --with-modules 'CFLAGS=-O0 -gdwarf-4 -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS MODULES

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1255

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired format-spec rfc822 mml
mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan
thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote w32notify w32 multi-tty
make-network-process emacs)

Memory information:
((conses 16 93412 6661)
 (symbols 56 20753 0)
 (miscs 48 46 107)
 (strings 16 17771 6169)
 (string-bytes 1 441590)
 (vectors 16 12447)
 (vector-slots 8 432678 5024)
 (floats 8 162 46)
 (intervals 40 262 119)
 (buffers 856 21))



--- End Message ---
--- Begin Message --- Subject: Re: bug#22288: 25.0.50; Incorrect line and column number in byte-compilation warning Date: Sat, 22 Jan 2022 18:16:58 +0000
Hello Everybody.

This bug has just been fixed in master by merging in branch
scratch/correct-warning-pos.

-- 
Alan Mackenzie (Nuremberg, Germany).

On Fri, Jan 01, 2016 at 10:54:24 -0500, Clément Pit--Claudel wrote:
> Hi all,

> The byte-compiler doesn't always report the right line and column numbers. 
> For example for the following program in test.el:

> (defun test ()
>   (let (a))
>   a)

> Running M-x byte-compile-file RET test.el RET yields:

> > Compiling file /home/clement/test.el at Fri Jan  1 10:48:41 2016

> > In test:
> > test.el:2:9:Warning: reference to free variable ‘a’

> The correct warning would be

> > test.el:3:2:Warning: reference to free variable ‘a’

> Note that the following program gives the right error:

> (defun test ()
>   (let (b))
>   a)

> > test.el:3:3:Warning: reference to free variable ‘a’

> Although one might argue that it should be

> > test.el:3:2:Warning: reference to free variable ‘a’

> (that is, column 2, not 3) given that Emacs starts counting columns at 0.

> Cheers,
> Clément.

> In GNU Emacs 25.0.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
>  of 2015-12-29 built on clem-w50-mint
> Repository revision: a21bb238ce7bcc9c13a9cf66db77918304daa2fc
> Windowing system distributor 'The X.Org Foundation', version 11.0.11501000
> System Description:   Linux Mint 17.2 Rafaela


--- End Message ---

reply via email to

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