id summary reporter owner description type status priority milestone component version resolution keywords cc blockedby blocking platform 12822 [Patch] xhci.cpp: Fix -Wtautological-constant-out-of-range-compare mt korli "In xhci.cpp, clang warns '-Wtautological-constant-out-of-range-compare'. I think we may change fScratchpadCount size to compare with XHCI_MAX_SCRATCHPADS. {{{ /home/haiku/haiku/haiku/src/add-ons/kernel/busses/usb/xhci.cpp:427:23: warning: comparison of constant 1024 with expression of type 'uint8' (aka 'unsigned char') is always false [-Wtautological-constant-out-of-range-compare] if (fScratchpadCount > XHCI_MAX_SCRATCHPADS) { ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~ }}} " bug closed normal Unscheduled Drivers/USB/XHCI R1/Development fixed All