Opened 12 years ago
Closed 12 years ago
#10476 closed Patch - Bug Fix (fixed)
Silence uint warning (comparison < 0) in mythudplistener.cpp
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.25 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Silence a (pedantic) warning about testing the timeout uint for less than zero in mythtv/libs/libmythui/mythudplistener.cpp (detected by clang).
timeout is declared a uint. The string conversion is via toUInt(). The value cannot be negative, and the test is considered redundant by clang.
Patch attached to remove the (redundant) test.
Attachments (1)
Change History (3)
Changed 12 years ago by
Attachment: | mythudplistener_cpp.diff added |
---|
comment:1 Changed 12 years ago by
Milestone: | unknown → 0.25 |
---|---|
Owner: | set to stuartm |
Status: | new → accepted |
Version: | Unspecified → Master Head |
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note: See
TracTickets for help on using
tickets.
Silence warning about testing a uint for less than zero (detected by clang). Closes #10476
Signed-off-by: Stuart Morgan <smorgan@…>