bug-gettext
[Top][All Lists]
Advanced

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

Re: GetText 0.21 and warning: address of array always evaluate to 'true'


From: Bruno Haible
Subject: Re: GetText 0.21 and warning: address of array always evaluate to 'true'
Date: Fri, 18 Oct 2024 12:02:19 +0200

Jeffrey Walton wrote in
<https://lists.gnu.org/archive/html/bug-gettext/2020-11/msg00026.html>:
> I'm working on OS X 10.13. This may be a warning of interest for GetText 0.21:
> 
> libcroco/cr-cascade.c:212:47: warning: address of array
>       '((a_this)->priv)->sheets' will always evaluate to 'true'
>       [-Wpointer-bool-conversion]
>                 for (i = 0; PRIVATE (a_this)->sheets && i < NB_ORIGINS; i++) {
>                             ~~~~~~~~~~~~~~~~~~^~~~~~ ~~
> 
> I can't really tell what the intention is for sheets.

libcroco is written in a very defensive style. There is nothing worrisome
about this warning.

Bruno






reply via email to

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