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) |
36 | 36 | return GENERIC_EXIT_CONNECT_ERROR; |
37 | 37 | } |
38 | 38 | |
39 | | static int ClearSettingsCache(const MythUtilCommandLineParser &cmdline) |
| 39 | static int ClearSettingsCache(const MythUtilCommandLineParser &/*cmdline*/) |
40 | 40 | { |
41 | 41 | if (gCoreContext->ConnectToMasterServer(false, false)) |
42 | 42 | { |
… |
… |
static int SendSystemEvent(const MythUtilCommandLineParser &cmdline) |
62 | 62 | .arg(gCoreContext->GetHostName()))); |
63 | 63 | } |
64 | 64 | |
65 | | static int Reschedule(const MythUtilCommandLineParser &cmdline) |
| 65 | static int Reschedule(const MythUtilCommandLineParser &/*cmdline*/) |
66 | 66 | { |
67 | 67 | if (gCoreContext->ConnectToMasterServer(false, false)) |
68 | 68 | { |
… |
… |
static int Reschedule(const MythUtilCommandLineParser &cmdline) |
76 | 76 | return GENERIC_EXIT_CONNECT_ERROR; |
77 | 77 | } |
78 | 78 | |
79 | | static int ScanVideos(const MythUtilCommandLineParser &cmdline) |
| 79 | static int ScanVideos(const MythUtilCommandLineParser &/*cmdline*/) |
80 | 80 | { |
81 | 81 | if (gCoreContext->ConnectToMasterServer(false, false)) |
82 | 82 | { |
diff --git a/mythtv/programs/mythutil/messageutils.cpp b/mythtv/programs/mythutil/messageutils.cpp
index a0afee0..9432d3b 100644
a
|
b
|
const QString kNotification = |
40 | 40 | " <type>%type%</type>\n" |
41 | 41 | "</mythnotification>"; |
42 | 42 | |
43 | | static int PrintMTemplate(const MythUtilCommandLineParser &cmdline) |
| 43 | static int PrintMTemplate(const MythUtilCommandLineParser &/*cmdline*/) |
44 | 44 | { |
45 | 45 | cerr << kMessage.toLocal8Bit().constData() << endl; |
46 | 46 | return GENERIC_EXIT_OK; |
47 | 47 | } |
48 | 48 | |
49 | | static int PrintNTemplate(const MythUtilCommandLineParser &cmdline) |
| 49 | static int PrintNTemplate(const MythUtilCommandLineParser &/*cmdline*/) |
50 | 50 | { |
51 | 51 | cerr << kNotification.toLocal8Bit().constData() << endl; |
52 | 52 | return GENERIC_EXIT_OK; |
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 |
474 | 474 | Output(cat); |
475 | 475 | } |
476 | 476 | |
477 | | void HandlePMT(uint program_num, const ProgramMapTable *pmt) |
| 477 | void HandlePMT(uint /*program_num*/, const ProgramMapTable *pmt) |
478 | 478 | { |
479 | 479 | if (pmt && (!m_autopts || m_use_pid[pmt->tsheader()->PID()])) |
480 | 480 | Output(pmt); |
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) |
177 | 177 | return GENERIC_EXIT_OK; |
178 | 178 | } |
179 | 179 | |
180 | | static int ScanMusic(const MythUtilCommandLineParser &cmdline) |
| 180 | static int ScanMusic(const MythUtilCommandLineParser &/*cmdline*/) |
181 | 181 | { |
182 | 182 | MusicFileScanner *fscan = new MusicFileScanner(); |
183 | 183 | QStringList dirList; |
… |
… |
static int ScanMusic(const MythUtilCommandLineParser &cmdline) |
195 | 195 | return GENERIC_EXIT_OK; |
196 | 196 | } |
197 | 197 | |
198 | | static int UpdateRadioStreams(const MythUtilCommandLineParser &cmdline) |
| 198 | static int UpdateRadioStreams(const MythUtilCommandLineParser &/*cmdline*/) |
199 | 199 | { |
200 | 200 | // check we have the correct Music Schema Version (maybe the FE hasn't been run yet) |
201 | 201 | if (gCoreContext->GetNumSetting("MusicDBSchemaVer", 0) < 1024) |