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

[UDUNITS #SLV-499270]: udunits-2.1.24/lib/xml.c:1576: possible bad if test ?


Good catch! Thanks.

> Hello there,
> I just compiled udunits-2.1.24 with extra Linux gcc flag -Wlogical-op
> It said
> xml.c:1576:5: warning: logical 'or' of collectively exhaustive tests is 
> always true [-Wlogical-op]
> Source code is
> ÂÂÂ if (currFile->context != UNIT_NAME || currFile->context != ALIAS_NAME) 
> {
> Suggest swap || for &&
> Regards
> David Binderman

Steve Emmerson

Ticket Details
Ticket ID: SLV-499270
Department: Support UDUNITS
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.