Opened 16 years ago
Closed 16 years ago
#7156 closed defect (fixed)
Unused values in libmythtv
| Reported by: | Owned by: | stuartm | |
|---|---|---|---|
| Priority: | trivial | Milestone: | 0.24 |
| Component: | MythTV - General | Version: | head |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Sometimes assignments are made but the value is never checked or used. Here are the libmythtv defects associated to this idiom.
Attachments (1)
Change History (3)
by , 16 years ago
| Attachment: | libs_libmythtv-unused-value added |
|---|
comment:1 by , 16 years ago
| Milestone: | unknown → 0.24 |
|---|---|
| Owner: | changed from to |
| Status: | new → accepted |
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
(In [23968]) The variable 'widget' was being redeclared masking the earlier declaration and causing the assignment in the limited scope (if clause) to be lost. I can only assume that this code is rarely if ever reached since it never resulted in a bug that I'm aware of. Patch from Erik Hovland highlighted the problem, the other problems addressed by his patch had already been fixed. Closes #7156
Note:
See TracTickets
for help on using tickets.

Remove or rework values that are assigned but never used in libmythtv