unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70568: 30.0.50; build warnings on 'x86_64-pc-linux-gnu'
@ 2024-04-25 15:11 David Ponce via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-04-27  9:37 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: David Ponce via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-04-25 15:11 UTC (permalink / raw)
  To: 70568

Hello,

When I build Emacs configured for 'x86_64-pc-linux-gnu' on Fedora 39 with gcc 13.2.1
the below warnings are reported:


1) ./configure --with-x-toolkit=lucid --with-native-compilation=no

..
   CC       xterm.o
xterm.c: In function ‘x_alloc_nearest_color_1’:
xterm.c:9374:27: warning: potential null pointer dereference [-Wnull-dereference]
  9374 |   if (dpyinfo->visual_info.class == DirectColor)
       |       ~~~~~~~~~~~~~~~~~~~~^~~~~~
xterm.c:9374:27: warning: potential null pointer dereference [-Wnull-dereference]
...
   CC       eval.o
In file included from eval.c:25:
lisp.h: In function ‘internal_lisp_condition_case’:
lisp.h:1129:15: warning: variable ‘sym’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
  1129 |   Lisp_Object sym = XSYMBOL_WITH_POS (a)->sym;
       |               ^~~
eval.c:1413:43: warning: argument ‘var’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
  1413 | internal_lisp_condition_case (Lisp_Object var, Lisp_Object bodyform,
       |                               ~~~~~~~~~~~~^~~
...

2) ./configure --with-x-toolkit=gtk3 --with-cairo-xcb --with-native-compilation=no

...
   CC       eval.o
In file included from eval.c:25:
lisp.h: In function ‘internal_lisp_condition_case’:
lisp.h:1129:15: warning: variable ‘sym’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
  1129 |   Lisp_Object sym = XSYMBOL_WITH_POS (a)->sym;
       |               ^~~
eval.c:1413:43: warning: argument ‘var’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
  1413 | internal_lisp_condition_case (Lisp_Object var, Lisp_Object bodyform,
       |                               ~~~~~~~~~~~~^~~
...


In both cases (Lucid, gtk3) the reported warnings don't seem to affect run.
Thanks





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-01  7:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-25 15:11 bug#70568: 30.0.50; build warnings on 'x86_64-pc-linux-gnu' David Ponce via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-27  9:37 ` Eli Zaretskii
2024-04-27 22:20   ` Paul Eggert
2024-04-28  5:04     ` Eli Zaretskii
2024-04-28  5:05     ` Eli Zaretskii
2024-04-28  5:31       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-01  7:18     ` David Ponce via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-01  7:26       ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).