[mythtv-commits] Ticket #10476: Silence uint warning (comparison < 0) in mythudplistener.cpp

MythTV noreply at mythtv.org
Mon Mar 19 20:24:32 UTC 2012

#10476: Silence uint warning (comparison < 0) in mythudplistener.cpp
 Reporter:  Gary Buhrmaster <gary.buhrmaster@…>  |           Type:  Patch -
   Status:  new                                  |  Bug Fix
Milestone:  unknown                              |       Priority:  minor
  Version:  Unspecified                          |      Component:  MythTV
 Keywords:                                       |  - General
                                                 |       Severity:  medium
                                                 |  Ticket locked:  0
 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.

Ticket URL: <http://code.mythtv.org/trac/ticket/10476>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center

More information about the mythtv-commits mailing list