Opened 3 years ago

Closed 8 months ago

#76 closed defect (migrated)

OsiClpSolverInterface.cpp:7453: bad if test ?

Reported by: dcb314 Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description

OsiClpSolverInterface?.cpp:7453:24: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op]

Source code is

if (array[0]>=0
array[0]<=2)

Maybe better code

if (array[0] >= 0 && array[0] <= 2)

Change History (1)

comment:1 Changed 8 months ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

This ticket has been migrated to GitHub and will be resolved there: ​https://github.com/coin-or/Clp/issues/76

Note: See TracTickets for help on using tickets.