
noreply at mythtv
Mar 28, 2012, 11:01 AM
Post #1 of 6
(73 views)
Permalink
|
|
Ticket #10522: Correct compiler warning about unsigned comparison
|
|
#10522: Correct compiler warning about unsigned comparison -------------------------------------------------+------------------------- Reporter: Gary Buhrmaster | Owner: robertm <gary.buhrmaster@…> | Status: new Type: Patch - Bug Fix | Milestone: unknown Priority: minor | Version: Master Head Component: MythTV - Blu-ray Playback | Keywords: Severity: low | Ticket locked: 0 | -------------------------------------------------+------------------------- Remove pendantic compiler warning about comparison of unsigned expression in bdringbuffer.cpp In bdringbuffer, the chapter variable is declared as a unsigned integer. The tests for chapter<0 will always be false (and may be optimized out by a good compiler). The supplied patch removes the code which results in the (pendantic) warning message. change: if (chapter < 0 || chapter >= GetNumChapters()) to: if (chapter >= GetNumChapters()) Patch attached. -- Ticket URL: <http://code.mythtv.org/trac/ticket/10522> MythTV <http://code.mythtv.org/trac> MythTV Media Center _______________________________________________ mythtv-commits mailing list mythtv-commits [at] mythtv http://www.mythtv.org/mailman/listinfo/mythtv-commits
|