emacs-devel
[Top][All Lists]
Advanced

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

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


From: Eli Zaretskii
Subject: Re: Adjust gtkutil.c to build with gcc (GCC) 11.2.1 with -Wanalyzer-null-argument
Date: Wed, 01 Sep 2021 16:36:49 +0300

> From: Alexander Kuleshov <kuleshovmail@gmail.com>
> Date: Wed, 1 Sep 2021 18:44:34 +0600
> Cc: emacs-devel <emacs-devel@gnu.org>
> 
> On Wed, Sep 1, 2021 at 6:26 PM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > From: Alexander Kuleshov <kuleshovmail@gmail.com>
> > > Date: Wed, 1 Sep 2021 16:52:55 +0600
> > >
> > > 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));
> >
> > Isn't this a GCC bug?
> 
> hmm, yes, possibly. And forget about attachment, I was wrong with
> `(!old_label == !utf8_label) ||` part.

So maybe report it to their Bugzilla?  If it isn't a bug, perhaps they
will explain to us what is wrong with our code?

Thanks.



reply via email to

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