Ticket #4740: why-give-value-when-not-used-mythtv-main.patch

File why-give-value-when-not-used-mythtv-main.patch, 726 bytes (added by Erik Hovland <erik@…>, 16 years ago)

Removes unneeded variable

  • programs/mythtv/main.cpp

    We can give a value pointer to pthread_join. But we don't do anything
    
    From: Erik Hovland <erik@hovland.org>
    
    with it. So we might as well make it null and save some space.
    ---
    
     programs/mythtv/main.cpp |    3 +--
     1 files changed, 1 insertions(+), 2 deletions(-)
    
    diff --git a/programs/mythtv/main.cpp b/programs/mythtv/main.cpp
    index 24b8ce4..1348e33 100644
    a b int main(int argc, char *argv[]) 
    298298   
    299299    if (priv_thread_created)
    300300    {
    301         void *value;
    302301        gContext->addPrivRequest(MythPrivRequest::MythExit, NULL);
    303         pthread_join(priv_thread, &value);
     302        pthread_join(priv_thread, NULL);
    304303    }
    305304    delete gContext;
    306305