GNU bug report logs - #51172
Fix null-dereference warnings when compiling Emacs with GCC

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Wed, 13 Oct 2021 00:36:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Subject: bug#51172: closed (Re: bug#51172: Fix null-dereference warnings
 when compiling Emacs with GCC)
Date: Wed, 13 Oct 2021 18:50:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#51172: Fix null-dereference warnings when compiling Emacs with GCC

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 51172 <at> debbugs.gnu.org.

-- 
51172: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51172
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 51172-done <at> debbugs.gnu.org
Subject: Re: bug#51172: Fix null-dereference warnings when compiling Emacs
 with GCC
Date: Wed, 13 Oct 2021 11:49:38 -0700
On 10/13/21 5:14 AM, Eli Zaretskii wrote:

> Yes, please install on master.

Thanks, done, and closing the bug report. I also got another diagnostic 
in the master branch, and fixed that in a separate commit.

[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Emacs bug reports <bug-gnu-emacs <at> gnu.org>
Subject: Fix null-dereference warnings when compiling Emacs with GCC
Date: Tue, 12 Oct 2021 17:34:11 -0700
[Message part 4 (text/plain, inline)]
The attached patch against emacs-28 suppresses the final remaining GCC 
11.2.1 diagnostics that are emitted after emacs-28 is configured with 
--enable-gcc-warnings on x86-64.

The patch is benign, and it's conceivable that changing xmalloc etc. to 
always return nonnull fixes unlikely and obscure bugs (though I haven't 
checked this). However, I didn't install the patch into the emacs-28 
branch on the off-chance that Eli would prefer this sort of thing to be 
installed into the master branch.
[0001-Pacify-GCC-Wanalyzer-possible-null-dereference.patch (text/x-patch, attachment)]

This bug report was last modified 3 years and 299 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.