Open diablodale opened 1 year ago
Found by compiler warnings. These asserts are always true and therefore useless asserts. This suggests a logic failure before, wrong variable types, coding error, etc.
https://github.com/luxonis/XLink/blob/d209b7eeb8ac68435df5097e57e1dfd8ea1d0e83/src/pc/protocols/pcie_host.c#L148
https://github.com/luxonis/XLink/blob/d209b7eeb8ac68435df5097e57e1dfd8ea1d0e83/src/pc/protocols/pcie_host.c#L224
They are always true because their param is an unsigned variable, therefore it is be definition always >=0 making these asserts always true.
unsigned
>=0
Found by compiler warnings. These asserts are always true and therefore useless asserts. This suggests a logic failure before, wrong variable types, coding error, etc.
https://github.com/luxonis/XLink/blob/d209b7eeb8ac68435df5097e57e1dfd8ea1d0e83/src/pc/protocols/pcie_host.c#L148
https://github.com/luxonis/XLink/blob/d209b7eeb8ac68435df5097e57e1dfd8ea1d0e83/src/pc/protocols/pcie_host.c#L224
They are always true because their param is an
unsigned
variable, therefore it is be definition always>=0
making these asserts always true.