Opened 10 years ago

Closed 10 years ago

#7161 closed defect (fixed)

return statement might be unreachable if USE_HDHOMERUN is enabled

Reported by: Erik Hovland <erik@…> Owned by: Isaac Richards
Priority: trivial Milestone: unknown
Component: MythTV - General Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

The return connectErr; statement in CardUtil::HDHRdoesDVB() will never be reached if USE_HDHOMERUN is defined. So no sense compiling it in. Use a CPP #else to leave it out when USE_HDHOMERUN is set.

Attachments (1)

libs_libmythtv-unreachable (904 bytes) - added by Erik Hovland <erik@…> 10 years ago.
Use #else to leave out unreachable statements.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Erik Hovland <erik@…>

Attachment: libs_libmythtv-unreachable added

Use #else to leave out unreachable statements.

comment:1 Changed 10 years ago by Nigel

Resolution: fixed
Status: newclosed

(In [22050]) #if #else for unreachable code (which most compilers will never generate anyway). Closes #7161.

Note: See TracTickets for help on using tickets.