Opened 14 years ago
Closed 14 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)
by , 14 years ago
| Attachment: | mythudplistener_cpp.diff added |
|---|
comment:1 by , 14 years ago
| Milestone: | unknown → 0.25 |
|---|---|
| Owner: | set to |
| Status: | new → accepted |
| Version: | Unspecified → Master Head |
comment:2 by , 14 years ago
| 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@…>