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

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

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


From: Paul Eggert
Subject: bug#51172: Fix null-dereference warnings when compiling Emacs with GCC
Date: Tue, 12 Oct 2021 17:34:11 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

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.

Attachment: 0001-Pacify-GCC-Wanalyzer-possible-null-dereference.patch
Description: Text Data


reply via email to

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