]> git.eshelyaron.com Git - emacs.git/commit
Pacify GCC 14 -Wnull-dereference
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Apr 2024 08:20:12 +0000 (01:20 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:29:32 +0000 (18:29 +0200)
commitadea108dc5be31636e57e079b100a5b23955aaa8
tree08394d9754568d75ffda022c8e4250c588600eda
parent34cc6071d2a905c28cd3bcd95a05490cdece79e6
Pacify GCC 14 -Wnull-dereference

* src/xterm.c (x_dpyinfo): New function, which acts like
x_display_info_for_display except it always returns nonnull.
This simplifies callers and pacifies GCC 14.  All callers changed.

(cherry picked from commit 62c2afe84107de96b850c1da7a2b80bcab6e588a)
src/xfaces.c
src/xfns.c
src/xmenu.c
src/xterm.c
src/xterm.h