emacs-devel
[Top][All Lists]
Advanced

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

Adjust gtkutil.c to build with gcc (GCC) 11.2.1 with -Wanalyzer-null-arg


From: Alexander Kuleshov
Subject: Adjust gtkutil.c to build with gcc (GCC) 11.2.1 with -Wanalyzer-null-argument
Date: Wed, 1 Sep 2021 16:52:55 +0600

Hello,

I'm getting:

gtkutil.c: In function ‘xg_item_label_same_p’:
gtkutil.c:2936:54: error: use of NULL where non-null expected
[CWE-476] [-Werror=analyzer-null-argument]
 2936 |                   && ((!old_label && !utf8_label) || strcmp
(utf8_label, old_label) == 0));

error during building of GNU Emacs from master on Fedora 34 with GCC
11.2.1. I've attached a simple fix
for that.

Thank you.

Attachment: 0001-Fix-building-with-gcc-11.1.2-and-Wanalyzer-null-argu.patch
Description: Text Data


reply via email to

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