Opened 11 years ago

Closed 11 years ago

#5430 closed defect (fixed)

pthread_join does not need a var to store return value in mythfrontend/main.cpp

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

Description

pthread_join can be given a pointer to a variable to store the return value of the function that the thread is running. But in main.cpp, the function that is running doesn't return anything. So giving pthread_join a pointer to use means that it is unused. Save the (albeit little) space and don't give pthread_join a pointer.

Attachments (1)

programs_mythfrontend_main.cpp-dont-give-pthread_join-vars-it-doesnt-use.patch (760 bytes) - added by Erik Hovland <erik@…> 11 years ago.
removes pointer given to pthread_join

Download all attachments as: .zip

Change History (2)

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

removes pointer given to pthread_join

comment:1 Changed 11 years ago by danielk

Resolution: fixed
Status: newclosed

(In [17543]) Fixes #5430. Gets rid of unused variable.

Note: See TracTickets for help on using tickets.