bug-gcal
[Top][All Lists]
Advanced

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

[Bug-gcal] rc-insert.c:1247: bad if statement ?


From: David Binderman
Subject: [Bug-gcal] rc-insert.c:1247: bad if statement ?
Date: Sat, 19 Nov 2016 14:20:06 +0000

Hello there,

rc-insert.c:1247:11: warning: logical 'or' of collectively exhaustive tests is 
always true [-Wlogical-op]

Source code is

                  if (fwidth >= BIO_AXIS_MIN
                      || fwidth <= BIO_AXIS_MAX)

Maybe better code

                if (fwidth >= BIO_AXIS_MIN
                      && fwidth <= BIO_AXIS_MAX)

Regards

David Binderman





reply via email to

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