Ticket #12996: v2-0003-Fix-unused-parameter-warning-for-explicit-dummy-v.patch

File v2-0003-Fix-unused-parameter-warning-for-explicit-dummy-v.patch, 1016 bytes (added by David Hampton <mythtv@…>, 3 years ago)

Remove variable explicitly named dummy.

  • mythtv/programs/mythfrontend/videolist.cpp

    Fix unused parameter warning for explicit dummy variable.
    
    This function explicitly names its argument as 'dummy'. It would be
    easy to remove the argument from the function and its sole caller as
    they are all contained in the same file, but its a back pointer to the
    VideoList object that is calling this VideoListImp function. Leave it
    and just comment out the name.
    ---
     mythtv/programs/mythfrontend/videolist.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/mythtv/programs/mythfrontend/videolist.cpp b/mythtv/programs/mythfrontend/videolist.cpp
    index 7bcbda0..8ecf238 100644
    a b class VideoListImp 
    406406        return m_video_filter.getChangedState();
    407407    }
    408408
    409     bool Delete(unsigned int video_id, VideoList &dummy)
     409    bool Delete(unsigned int video_id, VideoList &/*dummy*/)
    410410    {
    411411        bool ret = false;
    412412        MetadataPtr mp = m_metadata.byID(video_id);