Ticket #12996: v2-0007-Clean-up-unused-parameter-warnings-in-mythutil.patch

File v2-0007-Clean-up-unused-parameter-warnings-in-mythutil.patch, 4.1 KB (added by David Hampton <mythtv@…>, 3 years ago)

Clean up unused parameter warnings in mythutil.

  • mythtv/programs/mythutil/backendutils.cpp

    Clean up unused parameter warnings in mythutil.
    
    These mythutil commands don't take any arguments, so the cmdline
    parameter is unused in the function. Comment out the parameter name to
    prevent the compiler from issuing 'unused parameter' warnings.
    ---
     mythtv/programs/mythutil/backendutils.cpp   | 6 +++---
     mythtv/programs/mythutil/messageutils.cpp   | 4 ++--
     mythtv/programs/mythutil/mpegutils.cpp      | 2 +-
     mythtv/programs/mythutil/musicmetautils.cpp | 4 ++--
     4 files changed, 8 insertions(+), 8 deletions(-)
    
    diff --git a/mythtv/programs/mythutil/backendutils.cpp b/mythtv/programs/mythutil/backendutils.cpp
    index 15290a3..de57bdc 100644
    a b static int RawSendEvent(const QStringList &eventStringList) 
    3636    return GENERIC_EXIT_CONNECT_ERROR;
    3737}
    3838
    39 static int ClearSettingsCache(const MythUtilCommandLineParser &cmdline)
     39static int ClearSettingsCache(const MythUtilCommandLineParser &/*cmdline*/)
    4040{
    4141    if (gCoreContext->ConnectToMasterServer(false, false))
    4242    {
    static int SendSystemEvent(const MythUtilCommandLineParser &cmdline) 
    6262                                    .arg(gCoreContext->GetHostName())));
    6363}
    6464
    65 static int Reschedule(const MythUtilCommandLineParser &cmdline)
     65static int Reschedule(const MythUtilCommandLineParser &/*cmdline*/)
    6666{
    6767    if (gCoreContext->ConnectToMasterServer(false, false))
    6868    {
    static int Reschedule(const MythUtilCommandLineParser &cmdline) 
    7676    return GENERIC_EXIT_CONNECT_ERROR;
    7777}
    7878
    79 static int ScanVideos(const MythUtilCommandLineParser &cmdline)
     79static int ScanVideos(const MythUtilCommandLineParser &/*cmdline*/)
    8080{
    8181    if (gCoreContext->ConnectToMasterServer(false, false))
    8282    {
  • mythtv/programs/mythutil/messageutils.cpp

    diff --git a/mythtv/programs/mythutil/messageutils.cpp b/mythtv/programs/mythutil/messageutils.cpp
    index a0afee0..9432d3b 100644
    a b const QString kNotification = 
    4040"  <type>%type%</type>\n"
    4141"</mythnotification>";
    4242
    43 static int PrintMTemplate(const MythUtilCommandLineParser &cmdline)
     43static int PrintMTemplate(const MythUtilCommandLineParser &/*cmdline*/)
    4444{
    4545    cerr << kMessage.toLocal8Bit().constData() << endl;
    4646    return GENERIC_EXIT_OK;
    4747}
    4848
    49 static int PrintNTemplate(const MythUtilCommandLineParser &cmdline)
     49static int PrintNTemplate(const MythUtilCommandLineParser &/*cmdline*/)
    5050{
    5151    cerr << kNotification.toLocal8Bit().constData() << endl;
    5252    return GENERIC_EXIT_OK;
  • mythtv/programs/mythutil/mpegutils.cpp

    diff --git a/mythtv/programs/mythutil/mpegutils.cpp b/mythtv/programs/mythutil/mpegutils.cpp
    index 4123429..f188447 100644
    a b class PrintMPEGStreamListener : public MPEGStreamListener, public PrintOutput 
    474474            Output(cat);
    475475    }
    476476
    477     void HandlePMT(uint program_num, const ProgramMapTable *pmt)
     477    void HandlePMT(uint /*program_num*/, const ProgramMapTable *pmt)
    478478    {
    479479        if (pmt && (!m_autopts || m_use_pid[pmt->tsheader()->PID()]))
    480480            Output(pmt);
  • mythtv/programs/mythutil/musicmetautils.cpp

    diff --git a/mythtv/programs/mythutil/musicmetautils.cpp b/mythtv/programs/mythutil/musicmetautils.cpp
    index 2e2d7e0..e303a60 100644
    a b static int ExtractImage(const MythUtilCommandLineParser &cmdline) 
    177177    return GENERIC_EXIT_OK;
    178178}
    179179
    180 static int ScanMusic(const MythUtilCommandLineParser &cmdline)
     180static int ScanMusic(const MythUtilCommandLineParser &/*cmdline*/)
    181181{
    182182    MusicFileScanner *fscan = new MusicFileScanner();
    183183    QStringList dirList;
    static int ScanMusic(const MythUtilCommandLineParser &cmdline) 
    195195    return GENERIC_EXIT_OK;
    196196}
    197197
    198 static int UpdateRadioStreams(const MythUtilCommandLineParser &cmdline)
     198static int UpdateRadioStreams(const MythUtilCommandLineParser &/*cmdline*/)
    199199{
    200200    // check we have the correct Music Schema Version (maybe the FE hasn't been run yet)
    201201    if (gCoreContext->GetNumSetting("MusicDBSchemaVer", 0) < 1024)