[mythtv-commits] Ticket #11557: Patch for cosmetic (false positive) static analysis bug in cc708decoder.cpp

MythTV noreply at mythtv.org
Tue May 28 03:18:24 UTC 2013


#11557: Patch for cosmetic (false positive) static analysis bug in cc708decoder.cpp
-------------------------------------------------+-------------------------
     Reporter:  Gary Buhrmaster                  |      Owner:  stichnot
  <gary.buhrmaster@…>                            |     Status:  new
         Type:  Patch - Bug Fix                  |  Milestone:  unknown
     Priority:  minor                            |    Version:  Master Head
    Component:  MythTV - Captions                |   Keywords:
     Severity:  medium                           |
Ticket locked:  0                                |
-------------------------------------------------+-------------------------
 Static analysis (scan-build) indicates that the variable seq_num in
 cc708decoder.cpp is assigned a value and not used.  This is due to the
 debug defines that evaluate to 0, and the code that could reference the
 variable would not be ever reached (according to the static analysis).

 Moving the variable inside the debug block next to the other variables
 used only inside the block causes no harm, and eliminates the reported
 misuse.


 https://github.com/garybuhrmaster/mythtv/commit/95af348bb0908896b84575c2d121336742ae36ba

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


More information about the mythtv-commits mailing list