-
Fix compiler 'unused parameter' error messages.
In all cases this involved adding Q_UNUSED() macros for the variables
to silence the compiler warning. There are also a couple of instances
of converting older "(void)foo" silencing to use the Q_UNUSED macro.
---
mythtv/external/FFmpeg/libavformat/os_support.h | 2 ++
mythtv/libs/libmyth/audio/audioconvert.h | 2 +-
mythtv/libs/libmyth/audio/audiooutputalsa.cpp | 1 +
mythtv/libs/libmyth/audio/audiooutputbase.h | 4 +--
mythtv/libs/libmyth/audio/audiooutputpulse.cpp | 7 ++++
mythtv/libs/libmyth/mythmediamonitor.cpp | 1 +
mythtv/libs/libmyth/mythterminal.cpp | 1 +
mythtv/libs/libmyth/programinfo.cpp | 1 +
mythtv/libs/libmythbase/housekeeper.h | 2 +-
mythtv/libs/libmythbase/logging.cpp | 1 +
mythtv/libs/libmythbase/loggingserver.cpp | 2 ++
mythtv/libs/libmythbase/mythcommandlineparser.cpp | 1 +
mythtv/libs/libmythbase/mythcorecontext.cpp | 2 ++
mythtv/libs/libmythbase/mythsession.cpp | 2 ++
mythtv/libs/libmythbase/mythsingledownload.cpp | 1 +
mythtv/libs/libmythbase/mythsystem.cpp | 3 ++
mythtv/libs/libmythbase/mythsystemlegacy.cpp | 1 +
mythtv/libs/libmythbase/mythtimezone.cpp | 1 +
mythtv/libs/libmythfreemheg/ParseText.cpp | 1 +
mythtv/libs/libmythfreemheg/Root.h | 3 +-
mythtv/libs/libmythfreemheg/Text.h | 3 +-
mythtv/libs/libmythfreemheg/Visible.h | 16 ++++++---
mythtv/libs/libmythmetadata/imagemanager.cpp | 1 +
.../requesthandler/basehandler.cpp | 1 +
.../requesthandler/messagehandler.cpp | 1 +
.../libs/libmythprotoserver/socketrequesthandler.h | 23 ++++++++++---
.../libs/libmythtv/AirPlay/mythraopconnection.cpp | 2 ++
mythtv/libs/libmythtv/Bluray/avformatdecoderbd.cpp | 1 +
mythtv/libs/libmythtv/Bluray/bdringbuffer.cpp | 1 +
mythtv/libs/libmythtv/Bluray/mythbdplayer.h | 29 +++++++++++++++--
mythtv/libs/libmythtv/DVD/avformatdecoderdvd.cpp | 1 +
mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp | 1 +
mythtv/libs/libmythtv/DVD/mythdvdplayer.cpp | 5 +++
mythtv/libs/libmythtv/HLS/httplivestream.cpp | 1 +
mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp | 4 +++
mythtv/libs/libmythtv/HLS/m3u.cpp | 2 ++
mythtv/libs/libmythtv/avformatdecoder.cpp | 3 ++
mythtv/libs/libmythtv/avformatdecoder.h | 2 +-
mythtv/libs/libmythtv/avformatwriter.cpp | 6 ++++
mythtv/libs/libmythtv/cardutil.cpp | 37 +++++++++++----------
mythtv/libs/libmythtv/channelgroupsettings.cpp | 2 ++
.../libs/libmythtv/channelscan/channelimporter.cpp | 3 ++
.../libs/libmythtv/channelscan/channelscan_sm.cpp | 1 +
.../libmythtv/channelscan/channelscanner_cli.cpp | 4 +++
.../libmythtv/channelscan/iptvchannelfetcher.cpp | 1 +
mythtv/libs/libmythtv/channelscan/paneatsc.h | 1 +
mythtv/libs/libmythtv/datadirect.cpp | 1 +
mythtv/libs/libmythtv/decoderbase.h | 19 +++++++----
mythtv/libs/libmythtv/diseqc.cpp | 2 ++
mythtv/libs/libmythtv/fileringbuffer.cpp | 1 +
mythtv/libs/libmythtv/filewriterbase.cpp | 4 +++
mythtv/libs/libmythtv/filewriterbase.h | 10 +++++-
mythtv/libs/libmythtv/icringbuffer.cpp | 1 +
mythtv/libs/libmythtv/mhi.cpp | 11 +++++++
mythtv/libs/libmythtv/mpeg/atsctables.h | 10 ++++--
mythtv/libs/libmythtv/mpeg/dvbstreamdata.cpp | 1 +
mythtv/libs/libmythtv/mpeg/mpegtables.cpp | 1 +
mythtv/libs/libmythtv/mpeg/mpegtables.h | 1 +
mythtv/libs/libmythtv/mpeg/sctetables.cpp | 1 +
mythtv/libs/libmythtv/mpeg/sctetables.h | 10 ++++--
mythtv/libs/libmythtv/mythplayer.cpp | 3 ++
mythtv/libs/libmythtv/mythplayer.h | 20 ++++++------
mythtv/libs/libmythtv/nuppeldecoder.cpp | 1 +
mythtv/libs/libmythtv/playercontext.cpp | 10 ++++++
mythtv/libs/libmythtv/privatedecoder.cpp | 9 +++++
.../libmythtv/recorders/ExternalStreamHandler.cpp | 2 ++
mythtv/libs/libmythtv/recorders/channelbase.h | 5 +--
mythtv/libs/libmythtv/recorders/dtvchannel.cpp | 2 ++
mythtv/libs/libmythtv/recorders/dtvchannel.h | 9 +++--
mythtv/libs/libmythtv/recorders/dtvrecorder.cpp | 1 +
mythtv/libs/libmythtv/recorders/dummychannel.h | 2 +-
.../libs/libmythtv/recorders/hdhrstreamhandler.h | 2 ++
.../libs/libmythtv/recorders/iptvstreamhandler.h | 2 ++
mythtv/libs/libmythtv/recorders/mpegrecorder.h | 4 +--
mythtv/libs/libmythtv/recorders/recorderbase.cpp | 1 +
mythtv/libs/libmythtv/recorders/streamhandler.h | 4 +--
mythtv/libs/libmythtv/recorders/v4lrecorder.h | 4 +--
mythtv/libs/libmythtv/recordingquality.cpp | 1 +
mythtv/libs/libmythtv/ringbuffer.cpp | 1 +
mythtv/libs/libmythtv/ringbuffer.h | 5 +--
mythtv/libs/libmythtv/streamingringbuffer.cpp | 1 +
mythtv/libs/libmythtv/subtitlescreen.cpp | 1 +
mythtv/libs/libmythtv/tv_play.cpp | 7 ++++
mythtv/libs/libmythtv/tv_rec.cpp | 3 ++
mythtv/libs/libmythtv/v4l2util.cpp | 1 +
mythtv/libs/libmythtv/videoout_null.h | 3 +-
mythtv/libs/libmythtv/videoout_nullvaapi.cpp | 1 +
mythtv/libs/libmythtv/videoout_nullvaapi.h | 35 ++++++++++++++------
mythtv/libs/libmythtv/videoout_nullvdpau.cpp | 3 ++
mythtv/libs/libmythtv/videoout_nullvdpau.h | 38 +++++++++++++++-------
mythtv/libs/libmythtv/videoout_opengl.cpp | 6 ++++
mythtv/libs/libmythtv/videoout_openglvaapi.cpp | 1 +
mythtv/libs/libmythtv/videoout_vdpau.cpp | 7 ++++
mythtv/libs/libmythtv/videoout_vdpau.h | 10 ++++--
mythtv/libs/libmythtv/videoout_xv.cpp | 2 ++
mythtv/libs/libmythtv/videooutbase.cpp | 1 +
mythtv/libs/libmythtv/videooutbase.h | 10 +++---
mythtv/libs/libmythtv/videosource.cpp | 3 ++
mythtv/libs/libmythtv/videosource.h | 2 +-
.../libmythtv/visualisations/videovisualgoom.cpp | 2 ++
.../visualisations/videovisualspectrum.cpp | 6 +++-
mythtv/libs/libmythtv/vsync.h | 2 +-
mythtv/libs/libmythui/mythgenerictree.cpp | 1 +
mythtv/libs/libmythui/mythnotificationcenter.cpp | 4 +++
mythtv/libs/libmythui/mythpainter.cpp | 2 ++
mythtv/libs/libmythui/mythpainter_qimage.h | 2 +-
mythtv/libs/libmythui/mythrender_opengl.h | 8 ++++-
mythtv/libs/libmythui/mythrender_opengl1.cpp | 1 +
mythtv/libs/libmythui/mythrender_opengl1.h | 9 ++++-
mythtv/libs/libmythui/mythrender_vdpau.cpp | 1 +
mythtv/libs/libmythui/myththemedmenu.cpp | 3 ++
mythtv/libs/libmythui/mythudplistener.cpp | 2 ++
mythtv/libs/libmythui/mythuibuttonlist.cpp | 1 +
mythtv/libs/libmythui/mythuiguidegrid.cpp | 3 ++
mythtv/libs/libmythui/mythuihelper.cpp | 2 ++
mythtv/libs/libmythui/mythuiimage.cpp | 1 +
mythtv/libs/libmythui/mythuishape.cpp | 1 +
mythtv/libs/libmythui/mythuisimpletext.cpp | 1 +
mythtv/libs/libmythui/mythuitext.cpp | 1 +
mythtv/libs/libmythui/mythuitype.cpp | 2 ++
mythtv/libs/libmythui/mythuivideo.cpp | 1 +
mythtv/libs/libmythui/mythuiwebbrowser.cpp | 1 +
.../libmythupnp/serializers/jsonSerializer.cpp | 11 +++++++
mythtv/libs/libmythupnp/serializers/serializer.h | 2 +-
.../libs/libmythupnp/serializers/xmlSerializer.cpp | 5 +++
.../libmythupnp/serializers/xmlplistSerializer.cpp | 5 +++
mythtv/libs/libmythupnp/upnpcds.cpp | 8 +++++
mythtv/libs/libmythupnp/upnpdevice.cpp | 1 +
mythtv/libs/libmythupnp/upnphelpers.cpp | 1 +
mythtv/libs/libmythupnp/websocket.cpp | 2 +-
mythtv/libs/libmythupnp/websocket.h | 6 ++--
mythtv/libs/libmythupnp/wsdl.cpp | 1 +
mythtv/libs/libmythupnp/xsd.cpp | 1 +
mythtv/programs/mythbackend/mainserver.cpp | 2 ++
mythtv/programs/mythbackend/mythsettings.cpp | 1 +
mythtv/programs/mythbackend/services/capture.h | 2 +-
mythtv/programs/mythbackend/services/channel.h | 2 +-
mythtv/programs/mythbackend/services/content.h | 2 +-
mythtv/programs/mythbackend/services/dvr.h | 2 +-
mythtv/programs/mythbackend/services/guide.cpp | 1 +
mythtv/programs/mythbackend/services/guide.h | 2 +-
mythtv/programs/mythbackend/services/image.cpp | 2 ++
mythtv/programs/mythbackend/services/image.h | 2 +-
mythtv/programs/mythbackend/services/video.h | 2 +-
mythtv/programs/mythcommflag/CommDetector2.cpp | 2 ++
mythtv/programs/mythcommflag/main.cpp | 1 +
.../programs/mythfrontend/audiogeneralsettings.cpp | 1 +
mythtv/programs/mythfrontend/guidegrid.cpp | 1 +
mythtv/programs/mythfrontend/playbackbox.cpp | 1 +
mythtv/programs/mythfrontend/videolist.cpp | 1 +
mythtv/programs/mythfrontend/viewscheduled.cpp | 1 +
mythtv/programs/mythfrontend/viewschedulediff.cpp | 1 +
mythtv/programs/mythlcdserver/lcdprocclient.cpp | 2 ++
.../mythmediaserver/controlrequesthandler.cpp | 2 ++
.../programs/mythtranscode/audioreencodebuffer.h | 3 +-
mythtv/programs/mythtranscode/transcode.cpp | 1 +
mythtv/programs/mythtv-setup/importicons.cpp | 1 +
mythtv/programs/mythutil/backendutils.cpp | 3 ++
mythtv/programs/mythutil/messageutils.cpp | 2 ++
mythtv/programs/mythutil/mpegutils.cpp | 12 ++++++-
mythtv/programs/mythutil/musicmetautils.cpp | 2 ++
161 files changed, 526 insertions(+), 118 deletions(-)
diff --git a/mythtv/external/FFmpeg/libavformat/os_support.h b/mythtv/external/FFmpeg/libavformat/os_support.h
index caf1a2f..8fbf43b 100644
a
|
b
|
static inline int is_dos_path(const char *path) |
72 | 72 | #if HAVE_DOS_PATHS |
73 | 73 | if (path[0] && path[1] == ':') |
74 | 74 | return 1; |
| 75 | #else |
| 76 | (void) path; |
75 | 77 | #endif |
76 | 78 | return 0; |
77 | 79 | } |
-
diff --git a/mythtv/libs/libmyth/audio/audioconvert.h b/mythtv/libs/libmyth/audio/audioconvert.h
index b9be02f..8dd2368 100644
a
|
b
|
public: |
51 | 51 | bool operator==(AudioConvert& rhs) const |
52 | 52 | { return m_in == rhs.m_in && m_out == rhs.m_out; } |
53 | 53 | bool operator!=(AudioConvert& rhs) const |
54 | | { return m_in != m_out; } |
| 54 | { Q_UNUSED(rhs); return m_in != m_out; } |
55 | 55 | |
56 | 56 | void DeinterleaveSamples(int channels, |
57 | 57 | uint8_t* output, const uint8_t* input, |
-
diff --git a/mythtv/libs/libmyth/audio/audiooutputalsa.cpp b/mythtv/libs/libmyth/audio/audiooutputalsa.cpp
index beb6e3b..16d4aea 100644
a
|
b
|
bool AudioOutputALSA::IncPreallocBufferSize(int requested, int buffer_time) |
246 | 246 | |
247 | 247 | QByteArray *AudioOutputALSA::GetELD(int card, int device, int subdevice) |
248 | 248 | { |
| 249 | Q_UNUSED(subdevice); |
249 | 250 | QByteArray *result = NULL; |
250 | 251 | snd_hctl_t *hctl; |
251 | 252 | snd_hctl_elem_t *elem; |
-
diff --git a/mythtv/libs/libmyth/audio/audiooutputbase.h b/mythtv/libs/libmyth/audio/audiooutputbase.h
index e7fc7e4..bfb15bd 100644
a
|
b
|
class AudioOutputBase : public AudioOutput, public MThread |
76 | 76 | virtual bool IsUpmixing(void); |
77 | 77 | virtual bool ToggleUpmix(void); |
78 | 78 | virtual bool CanUpmix(void); |
79 | | virtual bool CanProcess(AudioFormat fmt) { return true; } |
| 79 | virtual bool CanProcess(AudioFormat fmt) { Q_UNUSED(fmt); return true; } |
80 | 80 | virtual uint32_t CanProcess(void) |
81 | 81 | { |
82 | 82 | // we support all codec |
… |
… |
class AudioOutputBase : public AudioOutput, public MThread |
137 | 137 | virtual int GetBufferedOnSoundcard(void) const = 0; |
138 | 138 | // Default implementation only supports 2ch s16le at 48kHz |
139 | 139 | virtual AudioOutputSettings* GetOutputSettings(bool digital) |
140 | | { return new AudioOutputSettings; } |
| 140 | { Q_UNUSED(digital); return new AudioOutputSettings; } |
141 | 141 | // You need to call this from any implementation in the dtor. |
142 | 142 | void KillAudio(void); |
143 | 143 | |
-
diff --git a/mythtv/libs/libmyth/audio/audiooutputpulse.cpp b/mythtv/libs/libmyth/audio/audiooutputpulse.cpp
index 05c633f..b74b73c 100644
a
|
b
|
void AudioOutputPulseAudio::StreamStateCallback(pa_stream *s, void *arg) |
666 | 666 | |
667 | 667 | void AudioOutputPulseAudio::WriteCallback(pa_stream *s, size_t size, void *arg) |
668 | 668 | { |
| 669 | Q_UNUSED(s); |
| 670 | Q_UNUSED(size); |
669 | 671 | AudioOutputPulseAudio *audoutP = static_cast<AudioOutputPulseAudio*>(arg); |
670 | 672 | pa_threaded_mainloop_signal(audoutP->mainloop, 0); |
671 | 673 | } |
672 | 674 | |
673 | 675 | void AudioOutputPulseAudio::BufferFlowCallback(pa_stream *s, void *tag) |
674 | 676 | { |
| 677 | Q_UNUSED(s); |
675 | 678 | VBERROR(QString("stream buffer %1 flow").arg((char*)tag)); |
676 | 679 | } |
677 | 680 | |
… |
… |
void AudioOutputPulseAudio::OpCompletionCallback( |
691 | 694 | void AudioOutputPulseAudio::ServerInfoCallback( |
692 | 695 | pa_context *context, const pa_server_info *inf, void *arg) |
693 | 696 | { |
| 697 | Q_UNUSED(context); |
| 698 | Q_UNUSED(arg); |
694 | 699 | QString fn_log_tag = "ServerInfoCallback, "; |
695 | 700 | |
696 | 701 | VBAUDIO(fn_log_tag + |
… |
… |
void AudioOutputPulseAudio::ServerInfoCallback( |
703 | 708 | void AudioOutputPulseAudio::SinkInfoCallback( |
704 | 709 | pa_context *c, const pa_sink_info *info, int eol, void *arg) |
705 | 710 | { |
| 711 | Q_UNUSED(c); |
| 712 | Q_UNUSED(eol); |
706 | 713 | AudioOutputPulseAudio *audoutP = static_cast<AudioOutputPulseAudio*>(arg); |
707 | 714 | |
708 | 715 | if (!info) |
-
diff --git a/mythtv/libs/libmyth/mythmediamonitor.cpp b/mythtv/libs/libmyth/mythmediamonitor.cpp
index f459dfe..ae70ee6 100644
a
|
b
|
void MediaMonitor::RegisterMediaHandler(const QString &destination, |
610 | 610 | int mediaType, |
611 | 611 | const QString &extensions) |
612 | 612 | { |
| 613 | Q_UNUSED(key); |
613 | 614 | if (m_handlerMap.count(destination) == 0) |
614 | 615 | { |
615 | 616 | MHData mhd = { callback, mediaType, destination, description }; |
-
diff --git a/mythtv/libs/libmyth/mythterminal.cpp b/mythtv/libs/libmyth/mythterminal.cpp
index c784918..99de64d 100644
a
|
b
|
void MythTerminal::ProcessSendKeyPress(QKeyEvent *e) |
154 | 154 | void MythTerminal::ProcessFinished( |
155 | 155 | int exitCode, QProcess::ExitStatus exitStatus) |
156 | 156 | { |
| 157 | Q_UNUSED(exitStatus); |
157 | 158 | QMutexLocker locker(&lock); |
158 | 159 | AddText(tr("*** Exited with status: %1 ***").arg(exitCode)); |
159 | 160 | setEnabled(false); |
-
diff --git a/mythtv/libs/libmyth/programinfo.cpp b/mythtv/libs/libmyth/programinfo.cpp
index d1f633b..38aab3d 100644
a
|
b
|
ProgramInfoType ProgramInfo::DiscoverProgramInfoType(void) const |
2460 | 2460 | void ProgramInfo::SetAvailableStatus( |
2461 | 2461 | AvailableStatusType status, const QString &where) |
2462 | 2462 | { |
| 2463 | Q_UNUSED(where); |
2463 | 2464 | if (status != availableStatus) |
2464 | 2465 | { |
2465 | 2466 | LOG(VB_GUI, LOG_INFO, |
-
diff --git a/mythtv/libs/libmythbase/housekeeper.h b/mythtv/libs/libmythbase/housekeeper.h
index e3c6bf7..588e784 100644
a
|
b
|
class MBASE_PUBLIC HouseKeeperTask : public ReferenceCounter |
62 | 62 | virtual QDateTime UpdateLastRun(QDateTime last, bool successful=true); |
63 | 63 | virtual void SetLastRun(QDateTime last, bool successful=true); |
64 | 64 | |
65 | | virtual bool DoCheckRun(QDateTime now) { return false; } |
| 65 | virtual bool DoCheckRun(QDateTime now) { Q_UNUSED(now); return false; } |
66 | 66 | virtual bool DoRun(void) { return false; } |
67 | 67 | |
68 | 68 | virtual void Terminate(void) {} |
-
diff --git a/mythtv/libs/libmythbase/logging.cpp b/mythtv/libs/libmythbase/logging.cpp
index b8be407..adab36d 100644
a
|
b
|
void LoggerThread::launchLogServer(void) |
541 | 541 | /// \param msg The message received (can be multi-part) |
542 | 542 | void LoggerThread::messageReceived(const QList<QByteArray> &msg) |
543 | 543 | { |
| 544 | Q_UNUSED(msg); |
544 | 545 | m_initialWaiting = false; |
545 | 546 | // cout << "ping" << endl; |
546 | 547 | loggingGetTimeStamp(&m_epoch, NULL); |
-
diff --git a/mythtv/libs/libmythbase/loggingserver.cpp b/mythtv/libs/libmythbase/loggingserver.cpp
index 08e6888..dd578f8 100644
a
|
b
|
void LogServerThread::pingClient(QString clientId) |
942 | 942 | QByteArray clientBa = QByteArray::fromHex(clientId.toLocal8Bit()); |
943 | 943 | msg << clientBa << QByteArray(""); |
944 | 944 | m_zmqInSock->sendMessage(msg); |
| 945 | #else |
| 946 | Q_UNUSED(clientId); |
945 | 947 | #endif |
946 | 948 | } |
947 | 949 | |
-
diff --git a/mythtv/libs/libmythbase/mythcommandlineparser.cpp b/mythtv/libs/libmythbase/mythcommandlineparser.cpp
index c9db293..06539d0 100644
a
|
b
|
void CommandLineArg::SetChildOf(CommandLineArg *other, bool forward) |
779 | 779 | */ |
780 | 780 | void CommandLineArg::SetRequires(CommandLineArg *other, bool forward) |
781 | 781 | { |
| 782 | Q_UNUSED(forward); |
782 | 783 | int i; |
783 | 784 | bool replaced = false; |
784 | 785 | other->IncrRef(); |
-
diff --git a/mythtv/libs/libmythbase/mythcorecontext.cpp b/mythtv/libs/libmythbase/mythcorecontext.cpp
index ea980bb..b1c2110 100644
a
|
b
|
MythSocket *MythCoreContext::ConnectCommandSocket( |
406 | 406 | const QString &hostname, int port, const QString &announce, |
407 | 407 | bool *p_proto_mismatch, bool gui, int maxConnTry, int setup_timeout) |
408 | 408 | { |
| 409 | Q_UNUSED(gui); |
409 | 410 | MythSocket *serverSock = NULL; |
410 | 411 | |
411 | 412 | { |
… |
… |
bool MythCoreContext::SendReceiveStringList( |
1252 | 1253 | QStringList &strlist, bool quickTimeout, bool block) |
1253 | 1254 | { |
1254 | 1255 | QString msg; |
| 1256 | Q_UNUSED(block); |
1255 | 1257 | if (HasGUI() && IsUIThread()) |
1256 | 1258 | { |
1257 | 1259 | msg = "SendReceiveStringList("; |
-
diff --git a/mythtv/libs/libmythbase/mythsession.cpp b/mythtv/libs/libmythbase/mythsession.cpp
index e2215b5..89999de 100644
a
|
b
|
bool MythUserSession::IsValid(void) const |
37 | 37 | bool MythUserSession::CheckPermission(const QString &context, |
38 | 38 | uint permission) |
39 | 39 | { |
| 40 | Q_UNUSED(context); |
| 41 | Q_UNUSED(permission); |
40 | 42 | if (!gCoreContext->IsMasterBackend()) |
41 | 43 | { |
42 | 44 | // TODO: Connect to master and do checking there |
-
diff --git a/mythtv/libs/libmythbase/mythsingledownload.cpp b/mythtv/libs/libmythbase/mythsingledownload.cpp
index 5a423be..475670f 100644
a
|
b
|
void MythSingleDownload::Cancel(void) |
114 | 114 | |
115 | 115 | void MythSingleDownload::Progress(qint64 bytesRead, qint64 totalBytes) |
116 | 116 | { |
| 117 | Q_UNUSED(totalBytes); |
117 | 118 | if (m_maxsize && bytesRead>=m_maxsize) |
118 | 119 | { |
119 | 120 | LOG(VB_GENERAL, LOG_INFO, LOC + QString("Reached specified max file size (%1 bytes)").arg(m_maxsize)); |
-
diff --git a/mythtv/libs/libmythbase/mythsystem.cpp b/mythtv/libs/libmythbase/mythsystem.cpp
index 93b64cf..4cf45b8 100644
a
|
b
|
class MythSystemLegacyWrapper : public MythSystem |
51 | 51 | Priority cpuPriority, |
52 | 52 | Priority diskPriority) |
53 | 53 | { |
| 54 | Q_UNUSED(cpuPriority); |
| 55 | Q_UNUSED(diskPriority); |
| 56 | |
54 | 57 | if (args.empty()) |
55 | 58 | return NULL; |
56 | 59 | |
-
diff --git a/mythtv/libs/libmythbase/mythsystemlegacy.cpp b/mythtv/libs/libmythbase/mythsystemlegacy.cpp
index 3a7ee24..2bda393 100644
a
|
b
|
MythSystemLegacy::MythSystemLegacy(const MythSystemLegacy &other) : |
186 | 186 | |
187 | 187 | m_settings(other.m_settings) |
188 | 188 | { |
| 189 | Q_UNUSED(other); |
189 | 190 | m_semReady.release(other.m_semReady.available()); |
190 | 191 | } |
191 | 192 | |
-
diff --git a/mythtv/libs/libmythbase/mythtimezone.cpp b/mythtv/libs/libmythbase/mythtimezone.cpp
index 6a081a4..adfaa44 100644
a
|
b
|
bool checkTimeZone(void) |
315 | 315 | /// MythContext) connection to the backend. |
316 | 316 | bool checkTimeZone(const QStringList &master_settings) |
317 | 317 | { |
| 318 | Q_UNUSED(master_settings); |
318 | 319 | return true; |
319 | 320 | } |
320 | 321 | |
-
diff --git a/mythtv/libs/libmythfreemheg/ParseText.cpp b/mythtv/libs/libmythfreemheg/ParseText.cpp
index ecd7801..c03dd9e 100644
a
|
b
|
MHParseText::MHParseText(QByteArray &program) |
50 | 50 | m_nStringLength(0), m_p(0) |
51 | 51 | |
52 | 52 | { |
| 53 | Q_UNUSED(program); |
53 | 54 | } |
54 | 55 | |
55 | 56 | MHParseText::~MHParseText() |
-
diff --git a/mythtv/libs/libmythfreemheg/Root.h b/mythtv/libs/libmythfreemheg/Root.h
index 44fb3f1..01ee10f 100644
a
|
b
|
class MHRoot |
183 | 183 | // Actions on Interactibles. |
184 | 184 | virtual void SetInteractionStatus(bool /*newStatus*/, MHEngine *) { InvalidAction("SetInteractionStatus"); } |
185 | 185 | virtual bool GetInteractionStatus(void) { InvalidAction("GetInteractionStatus"); return false; } |
186 | | virtual void SetHighlightStatus(bool /*newStatus*/, MHEngine *engine) { InvalidAction("SetHighlightStatus"); } |
| 186 | virtual void SetHighlightStatus(bool /*newStatus*/, MHEngine *engine) |
| 187 | { Q_UNUSED(engine); InvalidAction("SetHighlightStatus"); } |
187 | 188 | virtual bool GetHighlightStatus(void) { InvalidAction("GetHighlightStatus"); return false; } |
188 | 189 | |
189 | 190 | // Actions on Sliders. |
-
diff --git a/mythtv/libs/libmythfreemheg/Text.h b/mythtv/libs/libmythfreemheg/Text.h
index e2ba9d6..24032bb 100644
a
|
b
|
class MHHyperText : public MHText, public MHInteractible |
106 | 106 | virtual void SetHighlightStatus(bool newStatus, MHEngine *engine) |
107 | 107 | { InteractSetHighlightStatus(newStatus, engine); } |
108 | 108 | virtual bool GetHighlightStatus(void) { return InteractGetHighlightStatus(); } |
109 | | virtual void Deactivation(MHEngine *engine) { InteractDeactivation(); } |
| 109 | virtual void Deactivation(MHEngine *engine) |
| 110 | { Q_UNUSED(engine); InteractDeactivation(); } |
110 | 111 | }; |
111 | 112 | |
112 | 113 | // Get Text Data - get the data out of a text object. |
-
diff --git a/mythtv/libs/libmythfreemheg/Visible.h b/mythtv/libs/libmythfreemheg/Visible.h
index 0ebd23e..e257461 100644
a
|
b
|
class MHSlider : public MHVisible, public MHInteractible |
183 | 183 | virtual void SetHighlightStatus(bool newStatus, MHEngine *engine) |
184 | 184 | { InteractSetHighlightStatus(newStatus, engine); } |
185 | 185 | virtual bool GetHighlightStatus(void) { return InteractGetHighlightStatus(); } |
186 | | virtual void Deactivation(MHEngine *engine) { InteractDeactivation(); } |
| 186 | virtual void Deactivation(MHEngine *engine) |
| 187 | { Q_UNUSED(engine); InteractDeactivation(); } |
187 | 188 | |
188 | 189 | // Actions |
189 | 190 | virtual void Step(int nbSteps, MHEngine *engine); |
… |
… |
class MHEntryField : public MHVisible, public MHInteractible |
236 | 237 | virtual void SetHighlightStatus(bool newStatus, MHEngine *engine) |
237 | 238 | { InteractSetHighlightStatus(newStatus, engine); } |
238 | 239 | virtual bool GetHighlightStatus(void) { return InteractGetHighlightStatus(); } |
239 | | virtual void Deactivation(MHEngine *engine) { InteractDeactivation(); } |
| 240 | virtual void Deactivation(MHEngine *engine) |
| 241 | { Q_UNUSED(engine); InteractDeactivation(); } |
240 | 242 | }; |
241 | 243 | |
242 | 244 | // Button - not needed for UK MHEG. |
… |
… |
class MHSetInteractionStatus: public MHActionBool |
400 | 402 | public: |
401 | 403 | MHSetInteractionStatus(): MHActionBool("SetInteractionStatus") {} |
402 | 404 | virtual void CallAction(MHEngine *engine, MHRoot *pTarget, bool newStatus) |
403 | | { Target(engine)->SetInteractionStatus(newStatus, engine); } |
| 405 | { |
| 406 | Q_UNUSED(pTarget); |
| 407 | Target(engine)->SetInteractionStatus(newStatus, engine); |
| 408 | } |
404 | 409 | }; |
405 | 410 | |
406 | 411 | class MHGetInteractionStatus: public MHActionObjectRef |
… |
… |
class MHSetHighlightStatus: public MHActionBool |
416 | 421 | public: |
417 | 422 | MHSetHighlightStatus(): MHActionBool("SetHighlightStatus") {} |
418 | 423 | virtual void CallAction(MHEngine *engine, MHRoot *pTarget, bool newStatus) |
419 | | { Target(engine)->SetHighlightStatus(newStatus, engine); } |
| 424 | { |
| 425 | Q_UNUSED(pTarget); |
| 426 | Target(engine)->SetHighlightStatus(newStatus, engine); |
| 427 | } |
420 | 428 | }; |
421 | 429 | |
422 | 430 | class MHGetHighlightStatus: public MHActionObjectRef |
-
diff --git a/mythtv/libs/libmythmetadata/imagemanager.cpp b/mythtv/libs/libmythmetadata/imagemanager.cpp
index e0e72d9..3f2f724 100644
a
|
b
|
public: |
110 | 110 | //! Delete thumbnails associated with device |
111 | 111 | void RemoveThumbs(bool eject = false) |
112 | 112 | { |
| 113 | Q_UNUSED(eject); |
113 | 114 | // Remove thumbnails |
114 | 115 | QString dir = QString("%1/" TEMP_SUBDIR "/%2").arg(GetConfDir(), m_thumbs); |
115 | 116 | LOG(VB_FILE, LOG_INFO, LOC + QString("Removing thumbnails in %1").arg(dir)); |
-
diff --git a/mythtv/libs/libmythprotoserver/requesthandler/basehandler.cpp b/mythtv/libs/libmythprotoserver/requesthandler/basehandler.cpp
index 99ebb06..c1782ab 100644
a
|
b
|
bool BaseRequestHandler::HandleAnnounce(MythSocket *socket, |
59 | 59 | bool BaseRequestHandler::HandleQuery(SocketHandler *sock, |
60 | 60 | QStringList &commands, QStringList &slist) |
61 | 61 | { |
| 62 | Q_UNUSED(slist); |
62 | 63 | QString command = commands[0]; |
63 | 64 | bool res = false; |
64 | 65 | |
-
diff --git a/mythtv/libs/libmythprotoserver/requesthandler/messagehandler.cpp b/mythtv/libs/libmythprotoserver/requesthandler/messagehandler.cpp
index d6b545b..e9d947c 100644
a
|
b
|
bool MessageHandler::HandleInbound(SocketHandler *sock, QStringList &slist) |
79 | 79 | // outbound events from master backend |
80 | 80 | bool MessageHandler::HandleOutbound(SocketHandler *sock, QStringList &slist) |
81 | 81 | { |
| 82 | Q_UNUSED(sock); |
82 | 83 | QStringList::const_iterator iter = slist.begin(); |
83 | 84 | QString message = *(iter++); |
84 | 85 | QStringList extra_data( *(iter++) ); |
-
diff --git a/mythtv/libs/libmythprotoserver/socketrequesthandler.h b/mythtv/libs/libmythprotoserver/socketrequesthandler.h
index e1e990d..0d90828 100644
a
|
b
|
class PROTOSERVER_PUBLIC SocketRequestHandler : public QObject |
18 | 18 | |
19 | 19 | virtual bool HandleAnnounce(MythSocket *socket, QStringList &commands, |
20 | 20 | QStringList &slist) |
21 | | { return false; } |
| 21 | { |
| 22 | Q_UNUSED(socket); |
| 23 | Q_UNUSED(commands); |
| 24 | Q_UNUSED(slist); |
| 25 | return false; |
| 26 | } |
22 | 27 | virtual bool HandleQuery(SocketHandler *socket, QStringList &commands, |
23 | 28 | QStringList &slist) |
24 | | { return false; } |
| 29 | { |
| 30 | Q_UNUSED(socket); |
| 31 | Q_UNUSED(commands); |
| 32 | Q_UNUSED(slist); |
| 33 | return false; |
| 34 | } |
25 | 35 | virtual QString GetHandlerName(void) { return "BASE"; } |
26 | 36 | virtual void connectionAnnounced(MythSocket *socket, QStringList &commands, |
27 | | QStringList &slist) { (void)socket; } |
28 | | virtual void connectionClosed(MythSocket *socket) { (void)socket; } |
| 37 | QStringList &slist) |
| 38 | { |
| 39 | Q_UNUSED(socket); |
| 40 | Q_UNUSED(commands); |
| 41 | Q_UNUSED(slist); |
| 42 | } |
| 43 | virtual void connectionClosed(MythSocket *socket) { Q_UNUSED(socket); } |
29 | 44 | virtual void SetParent(MythSocketManager *parent) { m_parent = parent; } |
30 | 45 | MythSocketManager *GetParent(void) { return m_parent; } |
31 | 46 | |
-
diff --git a/mythtv/libs/libmythtv/AirPlay/mythraopconnection.cpp b/mythtv/libs/libmythtv/AirPlay/mythraopconnection.cpp
index 613687c..4220c10 100644
a
|
b
|
bool MythRAOPConnection::Init(void) |
247 | 247 | void MythRAOPConnection::udpDataReady(QByteArray buf, QHostAddress peer, |
248 | 248 | quint16 port) |
249 | 249 | { |
| 250 | Q_UNUSED(peer); |
| 251 | Q_UNUSED(port); |
250 | 252 | // restart the idle timer |
251 | 253 | if (m_watchdogTimer) |
252 | 254 | m_watchdogTimer->start(10000); |
-
diff --git a/mythtv/libs/libmythtv/Bluray/avformatdecoderbd.cpp b/mythtv/libs/libmythtv/Bluray/avformatdecoderbd.cpp
index 7d80df7..46ebafd 100644
a
|
b
|
int AvFormatDecoderBD::GetAudioLanguage(uint audio_index, uint stream_index) |
98 | 98 | |
99 | 99 | int AvFormatDecoderBD::ReadPacket(AVFormatContext *ctx, AVPacket* pkt, bool& storePacket) |
100 | 100 | { |
| 101 | Q_UNUSED(storePacket); |
101 | 102 | QMutexLocker locker(avcodeclock); |
102 | 103 | |
103 | 104 | int result = av_read_frame(ctx, pkt); |
-
diff --git a/mythtv/libs/libmythtv/Bluray/bdringbuffer.cpp b/mythtv/libs/libmythtv/Bluray/bdringbuffer.cpp
index 15c5614..3314244 100644
a
|
b
|
void BDRingBuffer::ProgressUpdate(void) |
528 | 528 | |
529 | 529 | bool BDRingBuffer::OpenFile(const QString &lfilename, uint retry_ms) |
530 | 530 | { |
| 531 | Q_UNUSED(retry_ms); |
531 | 532 | safefilename = lfilename; |
532 | 533 | filename = lfilename; |
533 | 534 | |
-
diff --git a/mythtv/libs/libmythtv/Bluray/mythbdplayer.h b/mythtv/libs/libmythtv/Bluray/mythbdplayer.h
index 45242cf..3443d65 100644
a
|
b
|
class MythBDPlayer : public MythPlayer |
39 | 39 | // Non-const gets |
40 | 40 | // Disable screen grabs for Bluray |
41 | 41 | virtual char *GetScreenGrabAtFrame(uint64_t frameNum, bool absolute, |
42 | | int &buflen, int &vw, int &vh, float &ar) { return NULL; } |
| 42 | int &buflen, int &vw, int &vh, float &ar) |
| 43 | { |
| 44 | Q_UNUSED(frameNum); |
| 45 | Q_UNUSED(absolute); |
| 46 | Q_UNUSED(buflen); |
| 47 | Q_UNUSED(vw); |
| 48 | Q_UNUSED(vh); |
| 49 | Q_UNUSED(ar); |
| 50 | return NULL; |
| 51 | } |
43 | 52 | virtual char *GetScreenGrab(int secondsin, int &buflen, |
44 | | int &vw, int &vh, float &ar) { return NULL; } |
| 53 | int &vw, int &vh, float &ar) |
| 54 | { |
| 55 | Q_UNUSED(secondsin); |
| 56 | Q_UNUSED(buflen); |
| 57 | Q_UNUSED(vw); |
| 58 | Q_UNUSED(vh); |
| 59 | Q_UNUSED(ar); |
| 60 | return NULL; |
| 61 | } |
45 | 62 | |
46 | 63 | protected: |
47 | 64 | // Playback |
… |
… |
class MythBDPlayer : public MythPlayer |
60 | 77 | // Non-const gets |
61 | 78 | // Disable screen grabs for Bluray |
62 | 79 | virtual void SeekForScreenGrab(uint64_t &number, uint64_t frameNum, |
63 | | bool absolute) { return; } |
| 80 | bool absolute) |
| 81 | { |
| 82 | Q_UNUSED(number); |
| 83 | Q_UNUSED(frameNum); |
| 84 | Q_UNUSED(absolute); |
| 85 | return; |
| 86 | } |
64 | 87 | |
65 | 88 | private: |
66 | 89 | void DisplayMenu(void); |
-
diff --git a/mythtv/libs/libmythtv/DVD/avformatdecoderdvd.cpp b/mythtv/libs/libmythtv/DVD/avformatdecoderdvd.cpp
index 4f00c4c..0cb0e77 100644
a
|
b
|
void AvFormatDecoderDVD::UpdateFramesPlayed(void) |
84 | 84 | bool AvFormatDecoderDVD::GetFrame(DecodeType decodetype) |
85 | 85 | { |
86 | 86 | // Always try to decode audio and video for DVDs |
| 87 | Q_UNUSED(decodetype); |
87 | 88 | return AvFormatDecoder::GetFrame( kDecodeAV ); |
88 | 89 | } |
89 | 90 | |
-
diff --git a/mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp b/mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp
index 7779613..273e80e 100644
a
|
b
|
void DVDRingBuffer::GetDescForPos(QString &desc) |
477 | 477 | |
478 | 478 | bool DVDRingBuffer::OpenFile(const QString &lfilename, uint retry_ms) |
479 | 479 | { |
| 480 | Q_UNUSED(retry_ms); |
480 | 481 | QMutexLocker contextLocker(&m_contextLock); |
481 | 482 | rwlock.lockForWrite(); |
482 | 483 | |
-
diff --git a/mythtv/libs/libmythtv/DVD/mythdvdplayer.cpp b/mythtv/libs/libmythtv/DVD/mythdvdplayer.cpp
index b337023..3222bee 100644
a
|
b
|
void MythDVDPlayer::AutoDeint(VideoFrame *frame, bool allow_lock) |
27 | 27 | void MythDVDPlayer::ReleaseNextVideoFrame(VideoFrame *buffer, |
28 | 28 | int64_t timecode, bool wrap) |
29 | 29 | { |
| 30 | Q_UNUSED(wrap); |
30 | 31 | MythPlayer::ReleaseNextVideoFrame(buffer, timecode, |
31 | 32 | !player_ctx->buffer->IsInDiscMenuOrStillFrame()); |
32 | 33 | } |
… |
… |
void MythDVDPlayer::DecoderPauseCheck(void) |
83 | 84 | |
84 | 85 | bool MythDVDPlayer::PrebufferEnoughFrames(int min_buffers) |
85 | 86 | { |
| 87 | Q_UNUSED(min_buffers); |
86 | 88 | return MythPlayer::PrebufferEnoughFrames(1); |
87 | 89 | } |
88 | 90 | |
… |
… |
void MythDVDPlayer::InitialSeek(void) |
312 | 314 | |
313 | 315 | void MythDVDPlayer::ResetPlaying(bool resetframes) |
314 | 316 | { |
| 317 | Q_UNUSED(resetframes); |
315 | 318 | MythPlayer::ResetPlaying(false); |
316 | 319 | } |
317 | 320 | |
… |
… |
void MythDVDPlayer::ChangeSpeed(void) |
459 | 462 | |
460 | 463 | void MythDVDPlayer::AVSync(VideoFrame *frame, bool limit_delay) |
461 | 464 | { |
| 465 | Q_UNUSED(limit_delay); |
462 | 466 | MythPlayer::AVSync(frame, true); |
463 | 467 | } |
464 | 468 | |
… |
… |
int64_t MythDVDPlayer::GetTotalSeconds(bool /*honorCutList*/, int divisor) const |
506 | 510 | void MythDVDPlayer::SeekForScreenGrab(uint64_t &number, uint64_t frameNum, |
507 | 511 | bool absolute) |
508 | 512 | { |
| 513 | Q_UNUSED(absolute); |
509 | 514 | if (!player_ctx->buffer->IsDVD()) |
510 | 515 | return; |
511 | 516 | if (GoToMenu("menu")) |
-
diff --git a/mythtv/libs/libmythtv/HLS/httplivestream.cpp b/mythtv/libs/libmythtv/HLS/httplivestream.cpp
index 12e99fe..b2b0902 100644
a
|
b
|
bool HTTPLiveStream::UpdatePercentComplete(int percent) |
666 | 666 | |
667 | 667 | QString HTTPLiveStream::StatusToString(HTTPLiveStreamStatus status) |
668 | 668 | { |
| 669 | Q_UNUSED(status); |
669 | 670 | switch (m_status) { |
670 | 671 | case kHLSStatusUndefined : return QString("Undefined"); |
671 | 672 | case kHLSStatusQueued : return QString("Queued"); |
-
diff --git a/mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp b/mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
index fabb1bb..de890a1 100644
a
|
b
|
int HLSRingBuffer::ParseKey(HLSStream *hls, const QString &line) |
2060 | 2060 | |
2061 | 2061 | int HLSRingBuffer::ParseProgramDateTime(HLSStream *hls, const QString &line) const |
2062 | 2062 | { |
| 2063 | Q_UNUSED(hls); |
2063 | 2064 | /* |
2064 | 2065 | * #EXT-X-PROGRAM-DATE-TIME:<YYYY-MM-DDThh:mm:ssZ> |
2065 | 2066 | */ |
… |
… |
int HLSRingBuffer::ParseEndList(HLSStream *hls) const |
2138 | 2139 | |
2139 | 2140 | int HLSRingBuffer::ParseDiscontinuity(HLSStream *hls, const QString &line) const |
2140 | 2141 | { |
| 2142 | Q_UNUSED(hls); |
2141 | 2143 | /* Not handled, never seen so far */ |
2142 | 2144 | LOG(VB_PLAYBACK, LOG_DEBUG, LOC + QString("#EXT-X-DISCONTINUITY %1").arg(line)); |
2143 | 2145 | return RET_OK; |
… |
… |
int HLSRingBuffer::Prefetch(int count) |
2358 | 2360 | |
2359 | 2361 | void HLSRingBuffer::SanityCheck(const HLSStream *hls, const HLSSegment *segment) const |
2360 | 2362 | { |
| 2363 | Q_UNUSED(segment); |
2361 | 2364 | bool live = hls->Live(); |
2362 | 2365 | /* sanity check */ |
2363 | 2366 | if ((m_streamworker->CurrentPlaybackBuffer() == 0) && |
… |
… |
void HLSRingBuffer::SanitizeStreams(StreamsList *streams) |
2539 | 2542 | |
2540 | 2543 | bool HLSRingBuffer::OpenFile(const QString &lfilename, uint retry_ms) |
2541 | 2544 | { |
| 2545 | Q_UNUSED(retry_ms); |
2542 | 2546 | QWriteLocker lock(&rwlock); |
2543 | 2547 | |
2544 | 2548 | safefilename = lfilename; |
-
diff --git a/mythtv/libs/libmythtv/HLS/m3u.cpp b/mythtv/libs/libmythtv/HLS/m3u.cpp
index 801cebe..d96a580 100644
a
|
b
|
namespace M3U |
118 | 118 | const QString& loc, |
119 | 119 | int& id, uint64_t& bandwidth) |
120 | 120 | { |
| 121 | Q_UNUSED(url); |
121 | 122 | /* |
122 | 123 | * #EXT-X-STREAM-INF:[attribute=value][,attribute=value]* |
123 | 124 | * <URI> |
… |
… |
namespace M3U |
357 | 358 | bool ParseProgramDateTime(const QString& line, const QString& loc, |
358 | 359 | QDateTime &date) |
359 | 360 | { |
| 361 | Q_UNUSED(date); |
360 | 362 | /* |
361 | 363 | * #EXT-X-PROGRAM-DATE-TIME:<YYYY-MM-DDThh:mm:ssZ> |
362 | 364 | */ |
-
diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
index 501d06f..7d45a34 100644
a
|
b
|
float AvFormatDecoder::normalized_fps(AVStream *stream, AVCodecContext *enc) |
1464 | 1464 | static enum AVPixelFormat get_format_vdpau(struct AVCodecContext *avctx, |
1465 | 1465 | const enum AVPixelFormat *fmt) |
1466 | 1466 | { |
| 1467 | Q_UNUSED(fmt); |
1467 | 1468 | AvFormatDecoder *nd = (AvFormatDecoder *)(avctx->opaque); |
1468 | 1469 | if (nd && nd->GetPlayer()) |
1469 | 1470 | { |
… |
… |
void release_avf_buffer(void *opaque, uint8_t *data) |
2864 | 2865 | #ifdef USING_VDPAU |
2865 | 2866 | int get_avf_buffer_vdpau(struct AVCodecContext *c, AVFrame *pic, int flags) |
2866 | 2867 | { |
| 2868 | Q_UNUSED(flags); |
2867 | 2869 | AvFormatDecoder *nd = (AvFormatDecoder *)(c->opaque); |
2868 | 2870 | VideoFrame *frame = nd->GetPlayer()->GetNextVideoFrame(); |
2869 | 2871 | |
… |
… |
int get_avf_buffer_dxva2(struct AVCodecContext *c, AVFrame *pic, int flags) |
2963 | 2965 | #ifdef USING_VAAPI |
2964 | 2966 | int get_avf_buffer_vaapi(struct AVCodecContext *c, AVFrame *pic, int flags) |
2965 | 2967 | { |
| 2968 | Q_UNUSED(flags); |
2966 | 2969 | AvFormatDecoder *nd = (AvFormatDecoder *)(c->opaque); |
2967 | 2970 | VideoFrame *frame = nd->GetPlayer()->GetNextVideoFrame(); |
2968 | 2971 | |
-
diff --git a/mythtv/libs/libmythtv/avformatdecoder.h b/mythtv/libs/libmythtv/avformatdecoder.h
index ae3df77..66759c9 100644
a
|
b
|
class AvFormatDecoder : public DecoderBase |
264 | 264 | virtual void DoFastForwardSeek(long long desiredFrame, bool &needflush); |
265 | 265 | virtual void StreamChangeCheck(void) { } |
266 | 266 | virtual void PostProcessTracks(void) { } |
267 | | virtual bool IsValidStream(int streamid) {return true;} |
| 267 | virtual bool IsValidStream(int streamid) {Q_UNUSED(streamid); return true;} |
268 | 268 | |
269 | 269 | int DecodeAudio(AVCodecContext *ctx, uint8_t *buffer, int &data_size, |
270 | 270 | AVPacket *pkt); |
-
diff --git a/mythtv/libs/libmythtv/avformatwriter.cpp b/mythtv/libs/libmythtv/avformatwriter.cpp
index d12cf41..59b426a 100644
a
|
b
|
static void bswap_16_buf(short int *buf, int buf_cnt, int audio_channels) |
319 | 319 | |
320 | 320 | int AVFormatWriter::WriteAudioFrame(unsigned char *buf, int fnum, long long &timecode) |
321 | 321 | { |
| 322 | Q_UNUSED(fnum); |
322 | 323 | #if HAVE_BIGENDIAN |
323 | 324 | bswap_16_buf((short int*) buf, m_audioFrameSize, m_audioChannels); |
324 | 325 | #endif |
… |
… |
int AVFormatWriter::WriteAudioFrame(unsigned char *buf, int fnum, long long &tim |
420 | 421 | int AVFormatWriter::WriteTextFrame(int vbimode, unsigned char *buf, int len, |
421 | 422 | long long timecode, int pagenr) |
422 | 423 | { |
| 424 | Q_UNUSED(vbimode); |
| 425 | Q_UNUSED(buf); |
| 426 | Q_UNUSED(len); |
| 427 | Q_UNUSED(timecode); |
| 428 | Q_UNUSED(pagenr); |
423 | 429 | return 1; |
424 | 430 | } |
425 | 431 | |
-
diff --git a/mythtv/libs/libmythtv/cardutil.cpp b/mythtv/libs/libmythtv/cardutil.cpp
index 56dfd07..aaed23b 100644
a
|
b
|
QString CardUtil::ProbeDVBType(const QString &device) |
507 | 507 | QString CardUtil::ProbeDVBFrontendName(const QString &device) |
508 | 508 | { |
509 | 509 | QString ret = "ERROR_UNKNOWN"; |
510 | | (void) device; |
| 510 | Q_UNUSED(device); |
511 | 511 | |
512 | 512 | #ifdef USING_DVB |
513 | 513 | QString dvbdev = CardUtil::GetDeviceName(DVB_DEV_FRONTEND, device); |
… |
… |
int CardUtil::CreateCardInput(const uint inputid, |
1123 | 1123 | const uint schedorder, |
1124 | 1124 | const uint livetvorder) |
1125 | 1125 | { |
| 1126 | Q_UNUSED(hostname); |
1126 | 1127 | MSqlQuery query(MSqlQuery::InitCon()); |
1127 | 1128 | |
1128 | 1129 | query.prepare( |
… |
… |
uint CardUtil::GetQuickTuning(uint inputid, const QString &input_name) |
1507 | 1508 | |
1508 | 1509 | bool CardUtil::hasV4L2(int videofd) |
1509 | 1510 | { |
1510 | | (void) videofd; |
| 1511 | Q_UNUSED(videofd); |
1511 | 1512 | #ifdef USING_V4L2 |
1512 | 1513 | struct v4l2_capability vcap; |
1513 | 1514 | memset(&vcap, 0, sizeof(vcap)); |
… |
… |
bool CardUtil::GetV4LInfo( |
1559 | 1560 | |
1560 | 1561 | InputNames CardUtil::ProbeV4LVideoInputs(int videofd, bool &ok) |
1561 | 1562 | { |
1562 | | (void) videofd; |
| 1563 | Q_UNUSED(videofd); |
1563 | 1564 | |
1564 | 1565 | InputNames list; |
1565 | 1566 | ok = false; |
… |
… |
InputNames CardUtil::ProbeV4LVideoInputs(int videofd, bool &ok) |
1626 | 1627 | |
1627 | 1628 | InputNames CardUtil::ProbeV4LAudioInputs(int videofd, bool &ok) |
1628 | 1629 | { |
1629 | | (void) videofd; |
| 1630 | Q_UNUSED(videofd); |
1630 | 1631 | |
1631 | 1632 | InputNames list; |
1632 | 1633 | ok = false; |
… |
… |
QStringList CardUtil::ProbeDVBInputs(QString device) |
1785 | 1786 | ret += *it; |
1786 | 1787 | } |
1787 | 1788 | #else |
1788 | | (void) device; |
| 1789 | Q_UNUSED(device); |
1789 | 1790 | ret += QObject::tr("ERROR, Compile with DVB support to query inputs"); |
1790 | 1791 | #endif |
1791 | 1792 | |
… |
… |
void CardUtil::GetDeviceInputNames( |
1821 | 1822 | const QString &inputtype, |
1822 | 1823 | QStringList &inputs) |
1823 | 1824 | { |
| 1825 | Q_UNUSED(inputid); |
1824 | 1826 | inputs.clear(); |
1825 | 1827 | if (IsSingleInputType(inputtype)) |
1826 | 1828 | inputs += "MPEG2TS"; |
… |
… |
QString CardUtil::GetDeviceName(dvb_dev_type_t type, const QString &device) |
2105 | 2107 | |
2106 | 2108 | bool CardUtil::HDHRdoesDVB(const QString &device) |
2107 | 2109 | { |
2108 | | (void) device; |
| 2110 | Q_UNUSED(device); |
2109 | 2111 | |
2110 | 2112 | #ifdef USING_HDHOMERUN |
2111 | 2113 | hdhomerun_device_t *hdhr; |
… |
… |
QString CardUtil::GetHDHRdesc(const QString &device) |
2149 | 2151 | if (!validID || !hdhomerun_discover_validate_device_id(dev)) |
2150 | 2152 | return QObject::tr("Invalid Device ID"); |
2151 | 2153 | } |
2152 | | (void) deviceIsIP; |
| 2154 | Q_UNUSED(deviceIsIP); |
2153 | 2155 | |
2154 | 2156 | LOG(VB_GENERAL, LOG_INFO, "CardUtil::GetHDHRdescription(" + device + |
2155 | 2157 | ") - trying to locate device"); |
… |
… |
QString CardUtil::GetHDHRdesc(const QString &device) |
2179 | 2181 | return description; |
2180 | 2182 | #else |
2181 | 2183 | |
2182 | | (void) device; |
| 2184 | Q_UNUSED(device); |
2183 | 2185 | return connectErr; |
2184 | 2186 | #endif |
2185 | 2187 | } |
… |
… |
QString CardUtil::GetVBoxdesc(const QString &id, const QString &ip, |
2219 | 2221 | .arg(ip).arg(tunerNo).arg(tunerType); |
2220 | 2222 | |
2221 | 2223 | #else |
2222 | | (void) id; |
2223 | | (void) ip; |
2224 | | (void) tunerNo; |
2225 | | (void) tunerType; |
| 2224 | Q_UNUSED(id); |
| 2225 | Q_UNUSED(ip); |
| 2226 | Q_UNUSED(tunerNo); |
| 2227 | Q_UNUSED(tunerType); |
2226 | 2228 | |
2227 | 2229 | return connectErr; |
2228 | 2230 | #endif |
… |
… |
int CardUtil::GetASIDeviceNumber(const QString &device, QString *error) |
2310 | 2312 | |
2311 | 2313 | return device_num; |
2312 | 2314 | #else |
2313 | | (void) device; |
| 2315 | Q_UNUSED(device); |
2314 | 2316 | if (error) |
2315 | 2317 | *error = "Not compiled with ASI support."; |
2316 | 2318 | return -1; |
… |
… |
uint CardUtil::GetASIBufferSize(uint device_num, QString *error) |
2335 | 2337 | } |
2336 | 2338 | return buf_size; |
2337 | 2339 | #else |
2338 | | (void) device_num; |
| 2340 | Q_UNUSED(device_num); |
2339 | 2341 | if (error) |
2340 | 2342 | *error = "Not compiled with ASI support."; |
2341 | 2343 | return 0; |
… |
… |
uint CardUtil::GetASINumBuffers(uint device_num, QString *error) |
2360 | 2362 | } |
2361 | 2363 | return num_buffers; |
2362 | 2364 | #else |
2363 | | (void) device_num; |
| 2365 | Q_UNUSED(device_num); |
2364 | 2366 | if (error) |
2365 | 2367 | *error = "Not compiled with ASI support."; |
2366 | 2368 | return 0; |
… |
… |
int CardUtil::GetASIMode(uint device_num, QString *error) |
2384 | 2386 | } |
2385 | 2387 | return mode; |
2386 | 2388 | #else |
2387 | | (void) device_num; |
| 2389 | Q_UNUSED(device_num); |
2388 | 2390 | if (error) |
2389 | 2391 | *error = "Not compiled with ASI support."; |
2390 | 2392 | return -1; |
… |
… |
bool CardUtil::SetASIMode(uint device_num, uint mode, QString *error) |
2407 | 2409 | } |
2408 | 2410 | return ok; |
2409 | 2411 | #else |
2410 | | (void) device_num; |
| 2412 | Q_UNUSED(mode); |
| 2413 | Q_UNUSED(device_num); |
2411 | 2414 | if (error) |
2412 | 2415 | *error = "Not compiled with ASI support."; |
2413 | 2416 | return false; |
-
diff --git a/mythtv/libs/libmythtv/channelgroupsettings.cpp b/mythtv/libs/libmythtv/channelgroupsettings.cpp
index 5bbd792..16edeff 100644
a
|
b
|
void ChannelGroupStorage::Save(void) |
73 | 73 | |
74 | 74 | void ChannelGroupStorage::Save(QString destination) |
75 | 75 | { |
| 76 | Q_UNUSED(destination); |
76 | 77 | Save(); |
77 | 78 | } |
78 | 79 | |
… |
… |
class ChannelCheckBox : public CheckBoxSetting, public ChannelGroupStorage |
86 | 87 | CheckBoxSetting(this), |
87 | 88 | ChannelGroupStorage(this, chanid, grpname) |
88 | 89 | { |
| 90 | Q_UNUSED(_parent); |
89 | 91 | //: %1 is the channel number, %2 is the channel name |
90 | 92 | setLabel(tr("%1 %2", "Channel number with channel name") |
91 | 93 | .arg(channum).arg(channame)); |
-
diff --git a/mythtv/libs/libmythtv/channelscan/channelimporter.cpp b/mythtv/libs/libmythtv/channelscan/channelimporter.cpp
index 185c01d..96fe83d 100644
a
|
b
|
QString ChannelImporter::SimpleFormatChannel( |
1087 | 1087 | const ScanDTVTransport &transport, |
1088 | 1088 | const ChannelInsertInfo &chan) |
1089 | 1089 | { |
| 1090 | Q_UNUSED(transport); |
1090 | 1091 | QString msg; |
1091 | 1092 | QTextStream ssMsg(&msg); |
1092 | 1093 | |
… |
… |
QString ChannelImporter::ComputeSuggestedChannelNum( |
1255 | 1256 | const ScanDTVTransport &transport, |
1256 | 1257 | const ChannelInsertInfo &chan) |
1257 | 1258 | { |
| 1259 | Q_UNUSED(info); |
| 1260 | Q_UNUSED(transport); |
1258 | 1261 | static QMutex last_free_lock; |
1259 | 1262 | static QMap<uint,uint> last_free_chan_num_map; |
1260 | 1263 | |
-
diff --git a/mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp b/mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
index be20a27..e8abc6c 100644
a
|
b
|
void ChannelScanSM::HandleMGT(const MasterGuideTable *mgt) |
422 | 422 | |
423 | 423 | void ChannelScanSM::HandleSDT(uint tsid, const ServiceDescriptionTable *sdt) |
424 | 424 | { |
| 425 | Q_UNUSED(tsid); |
425 | 426 | QMutexLocker locker(&m_lock); |
426 | 427 | |
427 | 428 | LOG(VB_CHANSCAN, LOG_INFO, LOC + |
-
diff --git a/mythtv/libs/libmythtv/channelscan/channelscanner_cli.cpp b/mythtv/libs/libmythtv/channelscan/channelscanner_cli.cpp
index 2bfbb25..2ec8791 100644
a
|
b
|
void ChannelScannerCLI::Process(const ScanDTVTransportList &_transports) |
152 | 152 | void ChannelScannerCLI::MonitorProgress( |
153 | 153 | bool lock, bool strength, bool snr, bool rotor) |
154 | 154 | { |
| 155 | Q_UNUSED(lock); |
| 156 | Q_UNUSED(strength); |
| 157 | Q_UNUSED(snr); |
| 158 | Q_UNUSED(rotor); |
155 | 159 | if (VERBOSE_LEVEL_NONE) |
156 | 160 | cout<<"\r0%"<<flush; |
157 | 161 | } |
-
diff --git a/mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp b/mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp
index ec4c688..4070782 100644
a
|
b
|
void IPTVChannelFetcher::SetMessage(const QString &status) |
235 | 235 | QString IPTVChannelFetcher::DownloadPlaylist(const QString &url, |
236 | 236 | bool inQtThread) |
237 | 237 | { |
| 238 | Q_UNUSED(inQtThread); |
238 | 239 | if (url.startsWith("file", Qt::CaseInsensitive)) |
239 | 240 | { |
240 | 241 | QString ret = ""; |
-
diff --git a/mythtv/libs/libmythtv/channelscan/paneatsc.h b/mythtv/libs/libmythtv/channelscan/paneatsc.h
index e806014..c7c0631 100644
a
|
b
|
class PaneATSC : public VerticalConfigurationGroup |
92 | 92 | |
93 | 93 | void ModulationChanged(const QString &modulation) |
94 | 94 | { |
| 95 | Q_UNUSED(modulation); |
95 | 96 | ResetTransportRange(); |
96 | 97 | } |
97 | 98 | |
-
diff --git a/mythtv/libs/libmythtv/datadirect.cpp b/mythtv/libs/libmythtv/datadirect.cpp
index 7c62597..164c46b 100644
a
|
b
|
static bool has_setting(QString line, QString key) |
2154 | 2154 | static void get_atsc_stuff(QString channum, int sourceid, int freqid, |
2155 | 2155 | int &major, int &minor, long long &freq) |
2156 | 2156 | { |
| 2157 | Q_UNUSED(sourceid); |
2157 | 2158 | major = freqid; |
2158 | 2159 | minor = 0; |
2159 | 2160 | |
-
diff --git a/mythtv/libs/libmythtv/decoderbase.h b/mythtv/libs/libmythtv/decoderbase.h
index 9b8051f..1c9ca81 100644
a
|
b
|
class DecoderBase |
149 | 149 | |
150 | 150 | virtual void SetLowBuffers(bool low) { lowbuffers = low; } |
151 | 151 | /// Disables AC3/DTS pass through |
152 | | virtual void SetDisablePassThrough(bool disable) { (void)disable; } |
| 152 | virtual void SetDisablePassThrough(bool disable) { Q_UNUSED(disable); } |
153 | 153 | // Reconfigure audio as necessary, following configuration change |
154 | 154 | virtual void ForceSetupAudioStream(void) { } |
155 | 155 | |
… |
… |
class DecoderBase |
159 | 159 | MythPlayer *GetPlayer() { return m_parent; } |
160 | 160 | |
161 | 161 | virtual int GetNumChapters(void) { return 0; } |
162 | | virtual int GetCurrentChapter(long long framesPlayed) { return 0; } |
163 | | virtual void GetChapterTimes(QList<long long> ×) { return; } |
164 | | virtual long long GetChapter(int chapter) { return framesPlayed; } |
| 162 | virtual int GetCurrentChapter(long long framesPlayed) |
| 163 | { Q_UNUSED(framesPlayed); return 0; } |
| 164 | virtual void GetChapterTimes(QList<long long> ×) |
| 165 | { Q_UNUSED(times); return; } |
| 166 | virtual long long GetChapter(int chapter) |
| 167 | { Q_UNUSED(chapter); return framesPlayed; } |
165 | 168 | virtual bool DoRewind(long long desiredFrame, bool doflush = true); |
166 | 169 | virtual bool DoFastForward(long long desiredFrame, bool doflush = true); |
167 | | virtual void SetIdrOnlyKeyframes(bool value) { } |
| 170 | virtual void SetIdrOnlyKeyframes(bool value) { Q_UNUSED(value); } |
168 | 171 | |
169 | 172 | static uint64_t |
170 | 173 | TranslatePositionAbsToRel(const frm_dir_map_t &deleteMap, |
… |
… |
class DecoderBase |
257 | 260 | virtual int GetTeletextDecoderType(void) const { return -1; } |
258 | 261 | |
259 | 262 | virtual QString GetXDS(const QString&) const { return QString::null; } |
260 | | virtual QByteArray GetSubHeader(uint trackNo) const { return QByteArray(); } |
| 263 | virtual QByteArray GetSubHeader(uint trackNo) const |
| 264 | { Q_UNUSED(trackNo); return QByteArray(); } |
261 | 265 | virtual void GetAttachmentData(uint trackNo, QByteArray &filename, |
262 | | QByteArray &data) {} |
| 266 | QByteArray &data) |
| 267 | { Q_UNUSED(trackNo); Q_UNUSED(filename); Q_UNUSED(data);} |
263 | 268 | |
264 | 269 | // MHEG/MHI stuff |
265 | 270 | virtual bool SetAudioByComponentTag(int) { return false; } |
-
diff --git a/mythtv/libs/libmythtv/diseqc.cpp b/mythtv/libs/libmythtv/diseqc.cpp
index d84c286..c8fedda 100644
a
|
b
|
bool DiSEqCDevSCR::SendCommand(uint cmd, uint repeats, uint data_len, |
2294 | 2294 | uint DiSEqCDevSCR::GetVoltage(const DiSEqCDevSettings &settings, |
2295 | 2295 | const DTVMultiplex &tuning) const |
2296 | 2296 | { |
| 2297 | Q_UNUSED(settings); |
| 2298 | Q_UNUSED(tuning); |
2297 | 2299 | return SEC_VOLTAGE_13; |
2298 | 2300 | } |
2299 | 2301 | |
-
diff --git a/mythtv/libs/libmythtv/fileringbuffer.cpp b/mythtv/libs/libmythtv/fileringbuffer.cpp
index a092533..244e95b 100644
a
|
b
|
bool FileRingBuffer::IsOpen(void) const |
447 | 447 | */ |
448 | 448 | int FileRingBuffer::safe_read(int fd, void *data, uint sz) |
449 | 449 | { |
| 450 | Q_UNUSED(fd); |
450 | 451 | int ret; |
451 | 452 | unsigned tot = 0; |
452 | 453 | unsigned errcnt = 0; |
-
diff --git a/mythtv/libs/libmythtv/filewriterbase.cpp b/mythtv/libs/libmythtv/filewriterbase.cpp
index 650215d..e16df85 100644
a
|
b
|
FileWriterBase::~FileWriterBase() |
42 | 42 | |
43 | 43 | int FileWriterBase::WriteVideoFrame(VideoFrame *frame) |
44 | 44 | { |
| 45 | Q_UNUSED(frame); |
45 | 46 | LOG(VB_RECORD, LOG_ERR, LOC + "WriteVideoFrame(): Shouldn't be here!"); |
46 | 47 | |
47 | 48 | return 1; |
… |
… |
int FileWriterBase::WriteVideoFrame(VideoFrame *frame) |
49 | 50 | |
50 | 51 | int FileWriterBase::WriteAudioFrame(unsigned char *buf, int fnum, long long &timecode) |
51 | 52 | { |
| 53 | Q_UNUSED(buf); |
| 54 | Q_UNUSED(fnum); |
| 55 | Q_UNUSED(timecode); |
52 | 56 | LOG(VB_RECORD, LOG_ERR, LOC + "WriteAudioFrame(): Shouldn't be here!"); |
53 | 57 | |
54 | 58 | return 1; |
-
diff --git a/mythtv/libs/libmythtv/filewriterbase.h b/mythtv/libs/libmythtv/filewriterbase.h
index 15eb623..8ce6bd9 100644
a
|
b
|
class MTV_PUBLIC FileWriterBase |
19 | 19 | virtual int WriteVideoFrame(VideoFrame *frame); |
20 | 20 | virtual int WriteAudioFrame(unsigned char *buf, int fnum, long long &timecode); |
21 | 21 | virtual int WriteTextFrame(int vbimode, unsigned char *buf, int len, |
22 | | long long timecode, int pagenr) { return 1; } |
| 22 | long long timecode, int pagenr) |
| 23 | { |
| 24 | Q_UNUSED(vbimode); |
| 25 | Q_UNUSED(buf); |
| 26 | Q_UNUSED(len); |
| 27 | Q_UNUSED(timecode); |
| 28 | Q_UNUSED(pagenr); |
| 29 | return 1; |
| 30 | } |
23 | 31 | virtual int WriteSeekTable(void) { return 1; } |
24 | 32 | |
25 | 33 | virtual bool SwitchToNextFile(void) { return false; } |
-
diff --git a/mythtv/libs/libmythtv/icringbuffer.cpp b/mythtv/libs/libmythtv/icringbuffer.cpp
index 1ae956c..772b0f8 100644
a
|
b
|
bool ICRingBuffer::IsOpen(void) const |
37 | 37 | |
38 | 38 | bool ICRingBuffer::OpenFile(const QString &url, uint retry_ms) |
39 | 39 | { |
| 40 | Q_UNUSED(retry_ms); |
40 | 41 | if (!NetStream::IsSupported(url)) |
41 | 42 | { |
42 | 43 | LOG(VB_GENERAL, LOG_ERR, LOC + QString("Unsupported URL %1").arg(url) ); |
-
diff --git a/mythtv/libs/libmythtv/mhi.cpp b/mythtv/libs/libmythtv/mhi.cpp
index d7fa6e5..3afae9d 100644
a
|
b
|
void MHIDLA::DrawBorderedRectangle(int x, int y, int width, int height) |
1687 | 1687 | void MHIDLA::DrawOval(int x, int y, int width, int height) |
1688 | 1688 | { |
1689 | 1689 | // Not implemented. Not actually used in practice. |
| 1690 | Q_UNUSED(x); |
| 1691 | Q_UNUSED(y); |
| 1692 | Q_UNUSED(width); |
| 1693 | Q_UNUSED(height); |
1690 | 1694 | } |
1691 | 1695 | |
1692 | 1696 | // Arcs and sectors |
… |
… |
void MHIDLA::DrawArcSector(int x, int y, int width, int height, |
1694 | 1698 | int start, int arc, bool isSector) |
1695 | 1699 | { |
1696 | 1700 | // Not implemented. Not actually used in practice. |
| 1701 | Q_UNUSED(x); |
| 1702 | Q_UNUSED(y); |
| 1703 | Q_UNUSED(width); |
| 1704 | Q_UNUSED(height); |
| 1705 | Q_UNUSED(start); |
| 1706 | Q_UNUSED(arc); |
| 1707 | Q_UNUSED(isSector); |
1697 | 1708 | } |
1698 | 1709 | |
1699 | 1710 | // Polygons. This is used directly and also to draw other figures. |
-
diff --git a/mythtv/libs/libmythtv/mpeg/atsctables.h b/mythtv/libs/libmythtv/mpeg/atsctables.h
index 61e58a1..9b42ee4 100644
a
|
b
|
class MTV_PUBLIC AggregateEventInformationTable : public PSIPTable |
803 | 803 | QString toString(void) const |
804 | 804 | { return "AggregateEventInformationTable\n"; } |
805 | 805 | QString toStringXML(uint indent_level) const |
806 | | { return "<AggregateEventInformationTable />"; } |
| 806 | { |
| 807 | Q_UNUSED(indent_level); |
| 808 | return "<AggregateEventInformationTable />"; |
| 809 | } |
807 | 810 | }; |
808 | 811 | |
809 | 812 | /// SCTE 65 & ATSC/81 0xD7 |
… |
… |
class MTV_PUBLIC AggregateExtendedTextTable : public PSIPTable |
823 | 826 | QString toString(void) const |
824 | 827 | { return "AggregateExtendedTextTable\n"; } |
825 | 828 | QString toStringXML(uint indent_level) const |
826 | | { return "<AggregateExtendedTextTable />"; } |
| 829 | { |
| 830 | Q_UNUSED(indent_level); |
| 831 | return "<AggregateExtendedTextTable />"; |
| 832 | } |
827 | 833 | }; |
828 | 834 | |
829 | 835 | #endif // _ATSC_TABLES_H_ |
-
diff --git a/mythtv/libs/libmythtv/mpeg/dvbstreamdata.cpp b/mythtv/libs/libmythtv/mpeg/dvbstreamdata.cpp
index 8521dc4..95f391b 100644
a
|
b
|
bool DVBStreamData::HasCachedSDT(bool current) const |
831 | 831 | |
832 | 832 | bool DVBStreamData::HasCachedAnySDTs(bool current) const |
833 | 833 | { |
| 834 | Q_UNUSED(current); |
834 | 835 | QMutexLocker locker(&_cache_lock); |
835 | 836 | return !_cached_sdts.empty(); |
836 | 837 | } |
-
diff --git a/mythtv/libs/libmythtv/mpeg/mpegtables.cpp b/mythtv/libs/libmythtv/mpeg/mpegtables.cpp
index c8e954f..afe96f4 100644
a
|
b
|
SpliceInformationTable *SpliceInformationTable::GetDecrypted( |
1260 | 1260 | const QString &codeWord) const |
1261 | 1261 | { |
1262 | 1262 | // TODO |
| 1263 | Q_UNUSED(codeWord); |
1263 | 1264 | return NULL; |
1264 | 1265 | } |
1265 | 1266 | |
-
diff --git a/mythtv/libs/libmythtv/mpeg/mpegtables.h b/mythtv/libs/libmythtv/mpeg/mpegtables.h
index 23d908c..59275a3 100644
a
|
b
|
class MTV_PUBLIC SpliceInformationTable : public PSIPTable |
1131 | 1131 | // descriptor_loop_length 16 0.0 + _epilog |
1132 | 1132 | uint SpliceDescriptorsLength(uint i) const |
1133 | 1133 | { |
| 1134 | Q_UNUSED(i); |
1134 | 1135 | return (_epilog[0] << 8) | _epilog[1]; |
1135 | 1136 | } |
1136 | 1137 | |
-
diff --git a/mythtv/libs/libmythtv/mpeg/sctetables.cpp b/mythtv/libs/libmythtv/mpeg/sctetables.cpp
index fa29fd3..f4eaf0d 100644
a
|
b
|
QString AggregateDataEventTable::toString(void) const |
576 | 576 | QString AggregateDataEventTable::toStringXML(uint indent_level) const |
577 | 577 | { |
578 | 578 | // TODO |
| 579 | Q_UNUSED(indent_level); |
579 | 580 | return "<AggregateDataEventSection />"; |
580 | 581 | } |
-
diff --git a/mythtv/libs/libmythtv/mpeg/sctetables.h b/mythtv/libs/libmythtv/mpeg/sctetables.h
index 011436a..20a2d36 100644
a
|
b
|
class MTV_PUBLIC ProgramInformationMessageTable : public PSIPTable |
626 | 626 | QString toString(void) const |
627 | 627 | { return "Program Information Message\n"; } |
628 | 628 | QString toStringXML(uint indent_level) const |
629 | | { return "<ProgramInformationMessage />"; } |
| 629 | { |
| 630 | Q_UNUSED(indent_level); |
| 631 | return "<ProgramInformationMessage />"; |
| 632 | } |
630 | 633 | }; |
631 | 634 | |
632 | 635 | // PNM = 0xC1 -- Program Name Message (57 2003) PMT PID |
… |
… |
class MTV_PUBLIC ProgramNameMessageTable : public PSIPTable |
646 | 649 | QString toString(void) const |
647 | 650 | { return "Program Name Message\n"; } |
648 | 651 | QString toStringXML(uint indent_level) const |
649 | | { return "<ProgramNameMessage />"; } |
| 652 | { |
| 653 | Q_UNUSED(indent_level); |
| 654 | return "<ProgramNameMessage />"; |
| 655 | } |
650 | 656 | }; |
651 | 657 | |
652 | 658 | // ADET = 0xD9 -- Aggregate Data Event Table (80 2002) |
-
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index 3db086f..902a513 100644
a
|
b
|
void MythPlayer::SetTranscoding(bool value) |
3539 | 3539 | |
3540 | 3540 | bool MythPlayer::AddPIPPlayer(MythPlayer *pip, PIPLocation loc, uint timeout) |
3541 | 3541 | { |
| 3542 | Q_UNUSED(timeout); |
3542 | 3543 | if (!is_current_thread(playerThread)) |
3543 | 3544 | { |
3544 | 3545 | LOG(VB_GENERAL, LOG_ERR, LOC + "Cannot add PiP from another thread"); |
… |
… |
bool MythPlayer::AddPIPPlayer(MythPlayer *pip, PIPLocation loc, uint timeout) |
3564 | 3565 | |
3565 | 3566 | bool MythPlayer::RemovePIPPlayer(MythPlayer *pip, uint timeout) |
3566 | 3567 | { |
| 3568 | Q_UNUSED(timeout); |
3567 | 3569 | if (!is_current_thread(playerThread)) |
3568 | 3570 | return false; |
3569 | 3571 | |
… |
… |
bool MythPlayer::TranscodeGetNextFrame( |
4795 | 4797 | frm_dir_map_t::iterator &dm_iter, |
4796 | 4798 | int &did_ff, bool &is_key, bool honorCutList) |
4797 | 4799 | { |
| 4800 | Q_UNUSED(dm_iter); |
4798 | 4801 | player_ctx->LockPlayingInfo(__FILE__, __LINE__); |
4799 | 4802 | if (player_ctx->playingInfo) |
4800 | 4803 | player_ctx->playingInfo->UpdateInUseMark(); |
-
diff --git a/mythtv/libs/libmythtv/mythplayer.h b/mythtv/libs/libmythtv/mythplayer.h
index 3123a95..134f069 100644
a
|
b
|
class MTV_PUBLIC MythPlayer |
241 | 241 | InteractiveTV *GetInteractiveTV(void); |
242 | 242 | |
243 | 243 | // Title stuff |
244 | | virtual bool SwitchTitle(int title) { return false; } |
| 244 | virtual bool SwitchTitle(int title) { Q_UNUSED(title); return false; } |
245 | 245 | virtual bool NextTitle(void) { return false; } |
246 | 246 | virtual bool PrevTitle(void) { return false; } |
247 | 247 | |
248 | 248 | // Angle stuff |
249 | | virtual bool SwitchAngle(int title) { return false; } |
| 249 | virtual bool SwitchAngle(int title) { Q_UNUSED(title); return false; } |
250 | 250 | virtual bool NextAngle(void) { return false; } |
251 | 251 | virtual bool PrevAngle(void) { return false; } |
252 | 252 | |
… |
… |
class MTV_PUBLIC MythPlayer |
289 | 289 | |
290 | 290 | // Public Closed caption and teletext stuff |
291 | 291 | uint GetCaptionMode(void) const { return textDisplayMode; } |
292 | | virtual CC708Reader *GetCC708Reader(uint id=0) { return &cc708; } |
293 | | virtual CC608Reader *GetCC608Reader(uint id=0) { return &cc608; } |
294 | | virtual SubtitleReader *GetSubReader(uint id=0) { return &subReader; } |
295 | | virtual TeletextReader *GetTeletextReader(uint id=0) { return &ttxReader; } |
| 292 | virtual CC708Reader *GetCC708Reader(uint id=0) { Q_UNUSED(id); return &cc708; } |
| 293 | virtual CC608Reader *GetCC608Reader(uint id=0) { Q_UNUSED(id); return &cc608; } |
| 294 | virtual SubtitleReader *GetSubReader(uint id=0) { Q_UNUSED(id); return &subReader; } |
| 295 | virtual TeletextReader *GetTeletextReader(uint id=0) { Q_UNUSED(id); return &ttxReader; } |
296 | 296 | |
297 | 297 | // Public Audio/Subtitle/EIA-608/EIA-708 stream selection - thread safe |
298 | 298 | void TracksChanged(uint trackType); |
… |
… |
class MTV_PUBLIC MythPlayer |
329 | 329 | // Title public stuff |
330 | 330 | virtual int GetNumTitles(void) const { return 0; } |
331 | 331 | virtual int GetCurrentTitle(void) const { return 0; } |
332 | | virtual int GetTitleDuration(int title) const { return 0; } |
333 | | virtual QString GetTitleName(int title) const { return QString(); } |
| 332 | virtual int GetTitleDuration(int title) const { Q_UNUSED(title); return 0; } |
| 333 | virtual QString GetTitleName(int title) const { Q_UNUSED(title); return QString(); } |
334 | 334 | |
335 | 335 | // Angle public stuff |
336 | 336 | virtual int GetNumAngles(void) const { return 0; } |
337 | 337 | virtual int GetCurrentAngle(void) const { return 0; } |
338 | | virtual QString GetAngleName(int title) const { return QString(); } |
| 338 | virtual QString GetAngleName(int title) const { Q_UNUSED(title); return QString(); } |
339 | 339 | |
340 | 340 | // DVD public stuff |
341 | | virtual bool GoToMenu(QString str) { return false; } |
| 341 | virtual bool GoToMenu(QString str) { Q_UNUSED(str); return false; } |
342 | 342 | virtual void GoToDVDProgram(bool direction) { (void) direction; } |
343 | 343 | virtual bool IsInStillFrame() const { return false; } |
344 | 344 | |
-
diff --git a/mythtv/libs/libmythtv/nuppeldecoder.cpp b/mythtv/libs/libmythtv/nuppeldecoder.cpp
index 337324a..2977ade 100644
a
|
b
|
void release_nuppel_buffer(void *opaque, uint8_t *data) |
641 | 641 | |
642 | 642 | int get_nuppel_buffer(struct AVCodecContext *c, AVFrame *pic, int flags) |
643 | 643 | { |
| 644 | Q_UNUSED(flags); |
644 | 645 | NuppelDecoder *nd = (NuppelDecoder *)(c->opaque); |
645 | 646 | |
646 | 647 | int i; |
-
diff --git a/mythtv/libs/libmythtv/playercontext.cpp b/mythtv/libs/libmythtv/playercontext.cpp
index 593a1dc..653aaaf 100644
a
|
b
|
void PlayerContext::ResizePIPWindow(const QRect &rect) |
269 | 269 | |
270 | 270 | bool PlayerContext::StartEmbedding(WId wid, const QRect &embedRect) |
271 | 271 | { |
| 272 | Q_UNUSED(wid); |
272 | 273 | bool ret = false; |
273 | 274 | LockDeletePlayer(__FILE__, __LINE__); |
274 | 275 | if (player) |
… |
… |
bool PlayerContext::HandlePlayerSpeedChangeEOF(void) |
357 | 358 | bool PlayerContext::CalcPlayerSliderPosition(osdInfo &info, |
358 | 359 | bool paddedFields) const |
359 | 360 | { |
| 361 | Q_UNUSED(paddedFields); |
360 | 362 | QMutexLocker locker(&deletePlayerLock); |
361 | 363 | if (player) |
362 | 364 | { |
… |
… |
void PlayerContext::LockPlayingInfo(const char *file, int line) const |
586 | 588 | LOG(VB_GENERAL, LOG_DEBUG, QString("LockPlayingInfo(%1,%2)") |
587 | 589 | .arg(file).arg(line)); |
588 | 590 | #endif |
| 591 | Q_UNUSED(file); |
| 592 | Q_UNUSED(line); |
589 | 593 | playingInfoLock.lock(); |
590 | 594 | } |
591 | 595 | |
… |
… |
void PlayerContext::UnlockPlayingInfo(const char *file, int line) const |
595 | 599 | LOG(VB_GENERAL, LOG_DEBUG, QString("UnlockPlayingInfo(%1,%2)") |
596 | 600 | .arg(file).arg(line)); |
597 | 601 | #endif |
| 602 | Q_UNUSED(file); |
| 603 | Q_UNUSED(line); |
598 | 604 | playingInfoLock.unlock(); |
599 | 605 | } |
600 | 606 | |
… |
… |
void PlayerContext::LockDeletePlayer(const char *file, int line) const |
609 | 615 | LOG(VB_GENERAL, LOG_DEBUG, QString("LockDeletePlayer(%1,%2)") |
610 | 616 | .arg(file).arg(line)); |
611 | 617 | #endif |
| 618 | Q_UNUSED(file); |
| 619 | Q_UNUSED(line); |
612 | 620 | deletePlayerLock.lock(); |
613 | 621 | } |
614 | 622 | |
… |
… |
void PlayerContext::UnlockDeletePlayer(const char *file, int line) const |
621 | 629 | LOG(VB_GENERAL, LOG_DEBUG, QString("UnlockDeletePlayer(%1,%2)") |
622 | 630 | .arg(file).arg(line)); |
623 | 631 | #endif |
| 632 | Q_UNUSED(file); |
| 633 | Q_UNUSED(line); |
624 | 634 | deletePlayerLock.unlock(); |
625 | 635 | } |
626 | 636 | |
-
diff --git a/mythtv/libs/libmythtv/privatedecoder.cpp b/mythtv/libs/libmythtv/privatedecoder.cpp
index 5042599..69f1bcc 100644
a
|
b
|
void PrivateDecoder::GetDecoders(render_opts &opts) |
25 | 25 | #ifdef USING_CRYSTALHD |
26 | 26 | PrivateDecoderCrystalHD::GetDecoders(opts); |
27 | 27 | #endif |
| 28 | |
| 29 | #if !(defined(Q_OS_MACX) || USING_OPENMAX || USING_CRYSTALHD) |
| 30 | Q_UNUSED(opts); |
| 31 | #endif |
28 | 32 | } |
29 | 33 | |
30 | 34 | PrivateDecoder* PrivateDecoder::Create(const QString &decoder, |
… |
… |
PrivateDecoder* PrivateDecoder::Create(const QString &decoder, |
52 | 56 | delete chd; |
53 | 57 | #endif |
54 | 58 | |
| 59 | #if !(defined(Q_OS_MACX) || USING_OPENMAX || USING_CRYSTALHD) |
| 60 | Q_UNUSED(decoder); |
| 61 | Q_UNUSED(flags); |
| 62 | Q_UNUSED(avctx); |
| 63 | #endif |
55 | 64 | return NULL; |
56 | 65 | } |
-
diff --git a/mythtv/libs/libmythtv/recorders/ExternalStreamHandler.cpp b/mythtv/libs/libmythtv/recorders/ExternalStreamHandler.cpp
index ce8d8ae..6bc066e 100644
a
|
b
|
bool ExternIO::Run(void) |
210 | 210 | |
211 | 211 | void ExternIO::Term(bool force) |
212 | 212 | { |
| 213 | Q_UNUSED(force); |
213 | 214 | LOG(VB_RECORD, LOG_INFO, QString("ExternIO::Term()")); |
214 | 215 | } |
215 | 216 | |
… |
… |
void ExternalStreamHandler::PurgeBuffer(void) |
1123 | 1124 | void ExternalStreamHandler::PriorityEvent(int fd) |
1124 | 1125 | { |
1125 | 1126 | // TODO report on buffer overruns, etc. |
| 1127 | Q_UNUSED(fd); |
1126 | 1128 | } |
-
diff --git a/mythtv/libs/libmythtv/recorders/channelbase.h b/mythtv/libs/libmythtv/recorders/channelbase.h
index 5db7f55..4995891 100644
a
|
b
|
class ChannelBase |
55 | 55 | virtual void SetFd(int fd) { (void)fd; }; |
56 | 56 | /// \brief Returns file descriptor, -1 if it does not exist. |
57 | 57 | virtual int GetFd(void) const { return -1; }; |
58 | | virtual bool Tune(const QString &freqid, int finetune) { return true; } |
| 58 | virtual bool Tune(const QString &freqid, int finetune) |
| 59 | { Q_UNUSED(freqid); Q_UNUSED(finetune); return true; } |
59 | 60 | virtual bool IsExternalChannelChangeInUse(void); |
60 | 61 | |
61 | 62 | // Gets |
… |
… |
class ChannelBase |
93 | 94 | virtual bool InitPictureAttributes(void) { return false; } |
94 | 95 | virtual int GetPictureAttribute(PictureAttribute) const { return -1; } |
95 | 96 | virtual int ChangePictureAttribute( |
96 | | PictureAdjustType, PictureAttribute, bool up) { return -1; } |
| 97 | PictureAdjustType, PictureAttribute, bool up) { Q_UNUSED(up); return -1; } |
97 | 98 | |
98 | 99 | bool CheckChannel(const QString &channum) const; |
99 | 100 | |
-
diff --git a/mythtv/libs/libmythtv/recorders/dtvchannel.cpp b/mythtv/libs/libmythtv/recorders/dtvchannel.cpp
index e2a101d..90e3f17 100644
a
|
b
|
void DTVChannel::HandleScriptEnd(bool ok) |
396 | 396 | |
397 | 397 | // We do not want to call ChannelBase::HandleScript() as it |
398 | 398 | // will save the current channel to (*it)->startChanNum |
| 399 | Q_UNUSED(ok); |
399 | 400 | } |
400 | 401 | |
401 | 402 | bool DTVChannel::TuneMultiplex(uint mplexid, QString inputname) |
402 | 403 | { |
| 404 | Q_UNUSED(inputname); |
403 | 405 | DTVMultiplex tuning; |
404 | 406 | if (!tuning.FillFromDB(tunerType, mplexid)) |
405 | 407 | return false; |
-
diff --git a/mythtv/libs/libmythtv/recorders/dtvchannel.h b/mythtv/libs/libmythtv/recorders/dtvchannel.h
index 0f5fba4..77624d5 100644
a
|
b
|
class DTVChannel : public ChannelBase |
52 | 52 | /// will need to implement this when adding support for new hardware. |
53 | 53 | virtual bool Tune(const DTVMultiplex &tuning) = 0; |
54 | 54 | /// \brief Performs IPTV Tuning. Only implemented by IPTVChannel. |
55 | | virtual bool Tune(const IPTVTuningData&, bool scanning) { return false; } |
| 55 | virtual bool Tune(const IPTVTuningData&, bool scanning) |
| 56 | { Q_UNUSED(scanning); return false; } |
56 | 57 | /// \brief Leave it up to the implementation to map the channnum |
57 | 58 | /// appropriately. |
58 | 59 | /// |
59 | 60 | /// Used by the ExternalRecorder. |
60 | | virtual bool Tune(const QString &channum) { return true; } |
| 61 | virtual bool Tune(const QString &channum) |
| 62 | { Q_UNUSED(channum); return true; } |
61 | 63 | /// \brief Enters power saving mode if the card supports it |
62 | 64 | virtual bool EnterPowerSavingMode(void) |
63 | 65 | { |
… |
… |
class DTVChannel : public ChannelBase |
150 | 152 | uint mpeg_tsid, int mpeg_pnum); |
151 | 153 | void ClearDTVInfo(void) { SetDTVInfo(0, 0, 0, 0, -1); } |
152 | 154 | /// \brief Checks tuning for problems, and tries to fix them. |
153 | | virtual void CheckOptions(DTVMultiplex &tuning) const {} |
| 155 | virtual void CheckOptions(DTVMultiplex &tuning) const |
| 156 | { Q_UNUSED(tuning); } |
154 | 157 | virtual void HandleScriptEnd(bool ok); |
155 | 158 | |
156 | 159 | protected: |
-
diff --git a/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp b/mythtv/libs/libmythtv/recorders/dtvrecorder.cpp
index 5c2c783..ed60a4d 100644
a
|
b
|
bool DTVRecorder::FindAudioKeyframes(const TSPacket*) |
787 | 787 | /// write just 1 key-frame at the start. |
788 | 788 | bool DTVRecorder::FindOtherKeyframes(const TSPacket *tspacket) |
789 | 789 | { |
| 790 | Q_UNUSED(tspacket); |
790 | 791 | if (!ringBuffer || (GetStreamData()->VideoPIDSingleProgram() <= 0x1fff)) |
791 | 792 | return true; |
792 | 793 | |
-
diff --git a/mythtv/libs/libmythtv/recorders/dummychannel.h b/mythtv/libs/libmythtv/recorders/dummychannel.h
index 35b9466..70d00af 100644
a
|
b
|
class DummyChannel : public ChannelBase |
21 | 21 | ~DummyChannel(void) { return; } |
22 | 22 | |
23 | 23 | bool IsTunable(const QString &channum) const |
24 | | { return true; } |
| 24 | { Q_UNUSED(channum); return true; } |
25 | 25 | |
26 | 26 | bool Open(void) { return InitializeInput(); } |
27 | 27 | void Close(void) { return; } |
-
diff --git a/mythtv/libs/libmythtv/recorders/hdhrstreamhandler.h b/mythtv/libs/libmythtv/recorders/hdhrstreamhandler.h
index 9de0513..21e21a8 100644
a
|
b
|
class HDHRStreamHandler : public StreamHandler |
53 | 53 | bool needs_drb = false, |
54 | 54 | QString output_file = QString()) |
55 | 55 | { |
| 56 | Q_UNUSED(allow_section_reader); |
| 57 | Q_UNUSED(needs_drb); |
56 | 58 | StreamHandler::AddListener(data, false, false, output_file); |
57 | 59 | } // StreamHandler |
58 | 60 | |
-
diff --git a/mythtv/libs/libmythtv/recorders/iptvstreamhandler.h b/mythtv/libs/libmythtv/recorders/iptvstreamhandler.h
index 720a380..6e12ebc 100644
a
|
b
|
class IPTVStreamHandler : public StreamHandler |
87 | 87 | bool needs_drb = false, |
88 | 88 | QString output_file = QString()) |
89 | 89 | { |
| 90 | Q_UNUSED(allow_section_reader); |
| 91 | Q_UNUSED(needs_drb); |
90 | 92 | StreamHandler::AddListener(data, false, false, output_file); |
91 | 93 | } // StreamHandler |
92 | 94 | |
-
diff --git a/mythtv/libs/libmythtv/recorders/mpegrecorder.h b/mythtv/libs/libmythtv/recorders/mpegrecorder.h
index 6189e64..d2bc422 100644
a
|
b
|
class MpegRecorder : public V4LRecorder, |
44 | 44 | bool ProcessTSPacket(const TSPacket &tspacket); |
45 | 45 | |
46 | 46 | // DeviceReaderCB |
47 | | virtual void ReaderPaused(int fd) { pauseWait.wakeAll(); } |
48 | | virtual void PriorityEvent(int fd) { } |
| 47 | virtual void ReaderPaused(int fd) { Q_UNUSED(fd); pauseWait.wakeAll(); } |
| 48 | virtual void PriorityEvent(int fd) { Q_UNUSED(fd); } |
49 | 49 | |
50 | 50 | private: |
51 | 51 | virtual void InitStreamData(void); |
-
diff --git a/mythtv/libs/libmythtv/recorders/recorderbase.cpp b/mythtv/libs/libmythtv/recorders/recorderbase.cpp
index 93eb025..3a388f6 100644
a
|
b
|
RecorderBase *RecorderBase::CreateRecorder( |
833 | 833 | const GeneralDBOptions &genOpt, |
834 | 834 | const DVBDBOptions &dvbOpt) |
835 | 835 | { |
| 836 | Q_UNUSED(dvbOpt); |
836 | 837 | if (!channel) |
837 | 838 | return NULL; |
838 | 839 | |
-
diff --git a/mythtv/libs/libmythtv/recorders/streamhandler.h b/mythtv/libs/libmythtv/recorders/streamhandler.h
index eb4d2ed..e70bf1a 100644
a
|
b
|
class PIDInfo |
33 | 33 | virtual ~PIDInfo() {;} |
34 | 34 | |
35 | 35 | virtual bool Open(const QString &dev, bool use_section_reader) |
36 | | { return false; } |
37 | | virtual bool Close(const QString &dev) { return false; } |
| 36 | { Q_UNUSED(dev); Q_UNUSED(use_section_reader); return false; } |
| 37 | virtual bool Close(const QString &dev) { Q_UNUSED(dev); return false; } |
38 | 38 | bool IsOpen(void) const { return filter_fd >= 0; } |
39 | 39 | |
40 | 40 | uint _pid; |
-
diff --git a/mythtv/libs/libmythtv/recorders/v4lrecorder.h b/mythtv/libs/libmythtv/recorders/v4lrecorder.h
index b40f8d4..bd132d8 100644
a
|
b
|
class MTV_PUBLIC V4LRecorder : public DTVRecorder |
39 | 39 | void RunVBIDevice(void); |
40 | 40 | |
41 | 41 | virtual bool IsHelperRequested(void) const; |
42 | | virtual void FormatTT(struct VBIData *vbidata) {} |
43 | | virtual void FormatCC(uint code1, uint code2) {} |
| 42 | virtual void FormatTT(struct VBIData *vbidata) { Q_UNUSED(vbidata); } |
| 43 | virtual void FormatCC(uint code1, uint code2) { Q_UNUSED(code1); Q_UNUSED(code2); } |
44 | 44 | |
45 | 45 | protected: |
46 | 46 | QString audiodevice; |
-
diff --git a/mythtv/libs/libmythtv/recordingquality.cpp b/mythtv/libs/libmythtv/recordingquality.cpp
index 2983be4..14093e5 100644
a
|
b
|
RecordingQuality::RecordingQuality(const RecordingInfo *ri, |
17 | 17 | : m_continuity_error_count(0), m_packet_count(0), |
18 | 18 | m_overall_score(1.0) |
19 | 19 | { |
| 20 | Q_UNUSED(rg); |
20 | 21 | if (!ri) |
21 | 22 | return; |
22 | 23 | |
-
diff --git a/mythtv/libs/libmythtv/ringbuffer.cpp b/mythtv/libs/libmythtv/ringbuffer.cpp
index 9316267..f6b588a 100644
a
|
b
|
void RingBuffer::CalcReadAheadThresh(void) |
469 | 469 | |
470 | 470 | bool RingBuffer::IsNearEnd(double fps, uint vvf) const |
471 | 471 | { |
| 472 | Q_UNUSED(fps); |
472 | 473 | QReadLocker lock(&rwlock); |
473 | 474 | |
474 | 475 | if (!ateof && !setswitchtonext) |
-
diff --git a/mythtv/libs/libmythtv/ringbuffer.h b/mythtv/libs/libmythtv/ringbuffer.h
index 201537e..6263b67 100644
a
|
b
|
class MTV_PUBLIC RingBuffer : protected MThread |
109 | 109 | DVDRingBuffer *DVD(void); |
110 | 110 | BDRingBuffer *BD(void); |
111 | 111 | virtual bool StartFromBeginning(void) { return true; } |
112 | | virtual void IgnoreWaitStates(bool ignore) { } |
| 112 | virtual void IgnoreWaitStates(bool ignore) { Q_UNUSED(ignore); } |
113 | 113 | virtual bool IsInMenu(void) const { return false; } |
114 | 114 | virtual bool IsInStillFrame(void) const { return false; } |
115 | 115 | virtual bool IsInDiscMenuOrStillFrame(void) const { return IsInMenu() || IsInStillFrame(); } |
… |
… |
class MTV_PUBLIC RingBuffer : protected MThread |
125 | 125 | */ |
126 | 126 | virtual bool OpenFile(const QString &lfilename, |
127 | 127 | uint retry_ms = kDefaultOpenTimeout) = 0; |
128 | | virtual bool ReOpen(QString newFilename = "") { return false; } |
| 128 | virtual bool ReOpen(QString newFilename = "") |
| 129 | { Q_UNUSED(newFilename); return false; } |
129 | 130 | |
130 | 131 | int Read(void *buf, int count); |
131 | 132 | int Peek(void *buf, int count); // only works with readahead |
-
diff --git a/mythtv/libs/libmythtv/streamingringbuffer.cpp b/mythtv/libs/libmythtv/streamingringbuffer.cpp
index 99f7c59..80113ff 100644
a
|
b
|
long long StreamingRingBuffer::GetReadPosition(void) const |
40 | 40 | |
41 | 41 | bool StreamingRingBuffer::OpenFile(const QString &lfilename, uint retry_ms) |
42 | 42 | { |
| 43 | Q_UNUSED(retry_ms); |
43 | 44 | avcodeclock->lock(); |
44 | 45 | av_register_all(); |
45 | 46 | avcodeclock->unlock(); |
-
diff --git a/mythtv/libs/libmythtv/subtitlescreen.cpp b/mythtv/libs/libmythtv/subtitlescreen.cpp
index b4c4087..3106493 100644
a
|
b
|
void SubtitleScreen::AddScaledImage(QImage &img, QRect &pos) |
2340 | 2340 | #ifdef USING_LIBASS |
2341 | 2341 | static void myth_libass_log(int level, const char *fmt, va_list vl, void *ctx) |
2342 | 2342 | { |
| 2343 | Q_UNUSED(ctx); |
2343 | 2344 | static QString full_line("libass:"); |
2344 | 2345 | static const int msg_len = 255; |
2345 | 2346 | static QMutex string_lock; |
-
diff --git a/mythtv/libs/libmythtv/tv_play.cpp b/mythtv/libs/libmythtv/tv_play.cpp
index 52a6e38..af1fe97 100644
a
|
b
|
void TV::ToggleChannelFavorite(PlayerContext *ctx) |
7397 | 7397 | { |
7398 | 7398 | // TOGGLEFAV was broken in [20523], this just prints something |
7399 | 7399 | // out so as not to cause further confusion. See #8948. |
| 7400 | Q_UNUSED(ctx); |
7400 | 7401 | LOG(VB_GENERAL, LOG_ERR, |
7401 | 7402 | "TV::ToggleChannelFavorite() -- currently disabled"); |
7402 | 7403 | } |
… |
… |
QSet<uint> TV::IsTunableOn( |
8522 | 8523 | QSet<uint> TV::IsTunableOn(TV *tv, |
8523 | 8524 | const PlayerContext *ctx, uint chanid) |
8524 | 8525 | { |
| 8526 | Q_UNUSED(tv); |
8525 | 8527 | QSet<uint> tunable_cards; |
8526 | 8528 | |
8527 | 8529 | if (!chanid) |
… |
… |
void TV::DoEditSchedule(int editType) |
8837 | 8839 | void TV::EditSchedule(const PlayerContext *ctx, int editType) |
8838 | 8840 | { |
8839 | 8841 | // post the request so the guide will be created in the UI thread |
| 8842 | Q_UNUSED(ctx); |
8840 | 8843 | QString message = QString("START_EPG %1").arg(editType); |
8841 | 8844 | MythEvent* me = new MythEvent(message); |
8842 | 8845 | qApp->postEvent(this, me); |
… |
… |
bool MenuBase::LoadStringHelper(const QString &text, |
11170 | 11173 | const QString &keyBindingContext, |
11171 | 11174 | int includeLevel) |
11172 | 11175 | { |
| 11176 | Q_UNUSED(translationContext); |
| 11177 | Q_UNUSED(keyBindingContext); |
11173 | 11178 | bool result = false; |
11174 | 11179 | m_document = new QDomDocument(); |
11175 | 11180 | if (m_document->setContent(text)) |
… |
… |
void TV::PlaybackMenuInit(const MenuBase &menu) |
12365 | 12370 | |
12366 | 12371 | void TV::PlaybackMenuDeinit(const MenuBase &menu) |
12367 | 12372 | { |
| 12373 | Q_UNUSED(menu); |
12368 | 12374 | ReturnOSDLock(m_tvmCtx, m_tvmOsd); |
12369 | 12375 | ReturnPlayerLock(m_tvmCtx); |
12370 | 12376 | m_tvmOsd = NULL; |
… |
… |
void TV::MenuStrings(void) const |
12455 | 12461 | |
12456 | 12462 | void TV::ShowOSDMenu(const PlayerContext *ctx, bool isCompact) |
12457 | 12463 | { |
| 12464 | Q_UNUSED(ctx); |
12458 | 12465 | if (!m_playbackMenu.IsLoaded()) |
12459 | 12466 | { |
12460 | 12467 | m_playbackMenu.LoadFromFile("menu_playback.xml", |
-
diff --git a/mythtv/libs/libmythtv/tv_rec.cpp b/mythtv/libs/libmythtv/tv_rec.cpp
index 41b88d2..9c7dfcb 100644
a
|
b
|
static int num_inputs(void) |
1262 | 1262 | |
1263 | 1263 | static int eit_start_rand(uint inputid, int eitTransportTimeout) |
1264 | 1264 | { |
| 1265 | Q_UNUSED(inputid); |
1265 | 1266 | // randomize start time a bit |
1266 | 1267 | int timeout = random() % (eitTransportTimeout / 3); |
1267 | 1268 | // get the number of inputs and the position of the current input |
… |
… |
uint TVRec::GetSourceID(void) const |
3037 | 3038 | */ |
3038 | 3039 | QString TVRec::SetInput(QString input, uint requestType) |
3039 | 3040 | { |
| 3041 | Q_UNUSED(requestType); |
3040 | 3042 | QMutexLocker lock(&stateChangeLock); |
3041 | 3043 | QString origIn = input; |
3042 | 3044 | LOG(VB_RECORD, LOG_INFO, LOC + "SetInput(" + input + ") -- begin"); |
… |
… |
bool TVRec::GetProgramRingBufferForLiveTV(RecordingInfo **pginfo, |
4539 | 4541 | const QString & channum, |
4540 | 4542 | int inputID) |
4541 | 4543 | { |
| 4544 | Q_UNUSED(inputID); |
4542 | 4545 | LOG(VB_RECORD, LOG_INFO, LOC + "GetProgramRingBufferForLiveTV()"); |
4543 | 4546 | if (!channel || !tvchain || !pginfo || !rb) |
4544 | 4547 | return false; |
-
diff --git a/mythtv/libs/libmythtv/v4l2util.cpp b/mythtv/libs/libmythtv/v4l2util.cpp
index bf73e22..18392d1 100644
a
|
b
|
bool V4L2util::ResumeEncoding(void) |
1227 | 1227 | |
1228 | 1228 | bool V4L2util::OpenVBI(const QString& vbi_dev_name) |
1229 | 1229 | { |
| 1230 | Q_UNUSED(vbi_dev_name); |
1230 | 1231 | return false; |
1231 | 1232 | } |
1232 | 1233 | |
-
diff --git a/mythtv/libs/libmythtv/videoout_null.h b/mythtv/libs/libmythtv/videoout_null.h
index acdfeb6..daae3ce 100644
a
|
b
|
class VideoOutputNull : public VideoOutput |
40 | 40 | const QSize &video_dim); |
41 | 41 | void MoveResizeWindow(QRect ) {;} |
42 | 42 | virtual bool SetupVisualisation(AudioPlayer *audio, MythRender *render, |
43 | | const QString &name) { return false; } |
| 43 | const QString &name) |
| 44 | { Q_UNUSED(audio); Q_UNUSED(render); Q_UNUSED(name); return false; } |
44 | 45 | |
45 | 46 | private: |
46 | 47 | QMutex global_lock; |
-
diff --git a/mythtv/libs/libmythtv/videoout_nullvaapi.cpp b/mythtv/libs/libmythtv/videoout_nullvaapi.cpp
index bce40ae..b597641 100644
a
|
b
|
bool VideoOutputNullVAAPI::InputChanged(const QSize &video_dim_buf, |
148 | 148 | void *codec_private, |
149 | 149 | bool &aspect_only) |
150 | 150 | { |
| 151 | Q_UNUSED(codec_private); |
151 | 152 | LOG(VB_PLAYBACK, LOG_INFO, LOC + |
152 | 153 | QString("InputChanged(%1,%2,%3) '%4'->'%5'") |
153 | 154 | .arg(video_dim_disp.width()).arg(video_dim_disp.height()) |
-
diff --git a/mythtv/libs/libmythtv/videoout_nullvaapi.h b/mythtv/libs/libmythtv/videoout_nullvaapi.h
index 9689044..db8e476 100644
a
|
b
|
class VideoOutputNullVAAPI : public VideoOutput |
25 | 25 | void *codec_private, |
26 | 26 | bool &aspect_only); |
27 | 27 | |
28 | | virtual bool SetupDeinterlace(bool, const QString &ovrf = "") { return false; } |
| 28 | virtual bool SetupDeinterlace(bool, const QString &ovrf = "") |
| 29 | { Q_UNUSED(ovrf); return false; } |
29 | 30 | virtual bool SetDeinterlacingEnabled(bool) { return false; } |
30 | | virtual bool ApproveDeintFilter(const QString& filtername) const { return false; } |
| 31 | virtual bool ApproveDeintFilter(const QString& filtername) const |
| 32 | { Q_UNUSED(filtername); return false; } |
31 | 33 | virtual void ReleaseFrame(VideoFrame *frame); |
32 | 34 | virtual void ProcessFrame(VideoFrame *frame, OSD *osd, |
33 | 35 | FilterChain *filterList, |
34 | 36 | const PIPMap &pipPlayers, |
35 | | FrameScanType scan) {;} |
| 37 | FrameScanType scan) |
| 38 | { |
| 39 | Q_UNUSED(frame); |
| 40 | Q_UNUSED(osd); |
| 41 | Q_UNUSED(filterList); |
| 42 | Q_UNUSED(pipPlayers); |
| 43 | Q_UNUSED(scan); |
| 44 | } |
36 | 45 | virtual void PrepareFrame(VideoFrame *buffer, |
37 | | FrameScanType, OSD *osd) {;} |
| 46 | FrameScanType, OSD *osd) |
| 47 | { Q_UNUSED(buffer); Q_UNUSED(osd);} |
38 | 48 | virtual void Show(FrameScanType ) {;} |
39 | 49 | |
40 | | virtual void Zoom(ZoomDirection direction) {;} |
41 | | virtual void EmbedInWidget(const QRect &rect) {;} |
| 50 | virtual void Zoom(ZoomDirection direction) |
| 51 | { Q_UNUSED(direction); } |
| 52 | virtual void EmbedInWidget(const QRect &rect) |
| 53 | { Q_UNUSED(rect); } |
42 | 54 | virtual void StopEmbedding(void) {;} |
43 | | virtual void DrawUnusedRects(bool sync = true) {;} |
44 | | virtual void UpdatePauseFrame(int64_t &disp_timecode) {;} |
| 55 | virtual void DrawUnusedRects(bool sync = true) |
| 56 | { Q_UNUSED(sync); } |
| 57 | virtual void UpdatePauseFrame(int64_t &disp_timecode) |
| 58 | { Q_UNUSED(disp_timecode); } |
45 | 59 | virtual void MoveResizeWindow(QRect ) {;} |
46 | 60 | virtual bool CanVisualise(AudioPlayer *audio, MythRender *render) |
47 | | { return false; } |
| 61 | { Q_UNUSED(audio); Q_UNUSED(render); return false; } |
48 | 62 | virtual bool SetupVisualisation(AudioPlayer *audio, MythRender *render, |
49 | | const QString &name) { return false; } |
| 63 | const QString &name) |
| 64 | { Q_UNUSED(audio); Q_UNUSED(render); Q_UNUSED(name); return false; } |
50 | 65 | virtual MythPainter *GetOSDPainter(void) { return NULL; } |
51 | 66 | virtual VideoFrame *GetLastDecodedFrame(void); |
52 | 67 | virtual VideoFrame *GetLastShownFrame(void); |
-
diff --git a/mythtv/libs/libmythtv/videoout_nullvdpau.cpp b/mythtv/libs/libmythtv/videoout_nullvdpau.cpp
index 8952e1b..fe6370b 100644
a
|
b
|
bool VideoOutputNullVDPAU::InputChanged(const QSize &video_dim_buf, |
522 | 522 | void *codec_private, |
523 | 523 | bool &aspect_only) |
524 | 524 | { |
| 525 | Q_UNUSED(codec_private); |
525 | 526 | LOG(VB_PLAYBACK, LOG_INFO, LOC + |
526 | 527 | QString("InputChanged(%1,%2,%3) '%4'->'%5'") |
527 | 528 | .arg(video_dim_disp.width()).arg(video_dim_disp.height()) |
… |
… |
bool VideoOutputNullVDPAU::BufferSizeCheck(void) |
612 | 613 | |
613 | 614 | void* VideoOutputNullVDPAU::GetDecoderContext(unsigned char* buf, uint8_t*& id) |
614 | 615 | { |
| 616 | Q_UNUSED(buf); |
| 617 | Q_UNUSED(id); |
615 | 618 | return &m_context; |
616 | 619 | } |
-
diff --git a/mythtv/libs/libmythtv/videoout_nullvdpau.h b/mythtv/libs/libmythtv/videoout_nullvdpau.h
index 4eb3759..8f20acc 100644
a
|
b
|
class VideoOutputNullVDPAU : public VideoOutput |
46 | 46 | MythCodecID av_codec_id, |
47 | 47 | void *codec_private, |
48 | 48 | bool &aspect_only); |
49 | | virtual bool SetupDeinterlace(bool, const QString &ovrf = "") { return false; } |
50 | | virtual bool SetDeinterlacingEnabled(bool) { return false; } |
51 | | virtual bool ApproveDeintFilter(const QString& filtername) const { return false; } |
| 49 | virtual bool SetupDeinterlace(bool, const QString &ovrf = "") |
| 50 | { Q_UNUSED(ovrf); return false; } |
| 51 | virtual bool SetDeinterlacingEnabled(bool) |
| 52 | { return false; } |
| 53 | virtual bool ApproveDeintFilter(const QString& filtername) const |
| 54 | { Q_UNUSED(filtername); return false; } |
52 | 55 | virtual void ClearAfterSeek(void); |
53 | 56 | virtual void ReleaseFrame(VideoFrame *frame); |
54 | 57 | virtual void ProcessFrame(VideoFrame *frame, OSD *osd, |
55 | 58 | FilterChain *filterList, |
56 | 59 | const PIPMap &pipPlayers, |
57 | | FrameScanType scan) {;} |
| 60 | FrameScanType scan) |
| 61 | { |
| 62 | Q_UNUSED(frame); |
| 63 | Q_UNUSED(osd); |
| 64 | Q_UNUSED(filterList); |
| 65 | Q_UNUSED(pipPlayers); |
| 66 | Q_UNUSED(scan); |
| 67 | } |
58 | 68 | virtual void PrepareFrame(VideoFrame *buffer, |
59 | | FrameScanType, OSD *osd) {;} |
| 69 | FrameScanType, OSD *osd) |
| 70 | { Q_UNUSED(buffer); Q_UNUSED(osd); } |
60 | 71 | virtual void Show(FrameScanType ) {;} |
61 | 72 | |
62 | | virtual void Zoom(ZoomDirection direction) {;} |
63 | | virtual void EmbedInWidget(const QRect &rect) {;} |
| 73 | virtual void Zoom(ZoomDirection direction) |
| 74 | { Q_UNUSED(direction); } |
| 75 | virtual void EmbedInWidget(const QRect &rect) |
| 76 | { Q_UNUSED(rect); } |
64 | 77 | virtual void StopEmbedding(void) {;} |
65 | | virtual void DrawUnusedRects(bool sync = true) {;} |
66 | | virtual void UpdatePauseFrame(int64_t &disp_timecode) {;} |
| 78 | virtual void DrawUnusedRects(bool sync = true) |
| 79 | { Q_UNUSED(sync); } |
| 80 | virtual void UpdatePauseFrame(int64_t &disp_timecode) |
| 81 | { Q_UNUSED(disp_timecode); } |
67 | 82 | virtual void MoveResizeWindow(QRect ) {;} |
68 | 83 | virtual bool CanVisualise(AudioPlayer *audio, MythRender *render) |
69 | | { return false; } |
| 84 | { Q_UNUSED(audio); Q_UNUSED(render); return false; } |
70 | 85 | virtual bool SetupVisualisation(AudioPlayer *audio, MythRender *render, |
71 | | const QString &name) { return false; } |
| 86 | const QString &name) |
| 87 | { Q_UNUSED(audio); Q_UNUSED(render); Q_UNUSED(name); return false; } |
72 | 88 | virtual MythPainter *GetOSDPainter(void) { return NULL; } |
73 | 89 | virtual void DrawSlice(VideoFrame *frame, int x, int y, int w, int h); |
74 | 90 | |
-
diff --git a/mythtv/libs/libmythtv/videoout_opengl.cpp b/mythtv/libs/libmythtv/videoout_opengl.cpp
index 7a13935..f3146c3 100644
a
|
b
|
bool VideoOutputOpenGL::InputChanged(const QSize &video_dim_buf, |
247 | 247 | void *codec_private, |
248 | 248 | bool &aspect_only) |
249 | 249 | { |
| 250 | Q_UNUSED(codec_private); |
250 | 251 | LOG(VB_PLAYBACK, LOG_INFO, LOC + QString("InputChanged(%1,%2,%3) %4->%5") |
251 | 252 | .arg(video_dim_disp.width()).arg(video_dim_disp.height()) |
252 | 253 | .arg(aspect) |
… |
… |
void VideoOutputOpenGL::ProcessFrame(VideoFrame *frame, OSD *osd, |
475 | 476 | const PIPMap &pipPlayers, |
476 | 477 | FrameScanType scan) |
477 | 478 | { |
| 479 | Q_UNUSED(osd); |
478 | 480 | QMutexLocker locker(&gl_context_lock); |
479 | 481 | |
480 | 482 | if (!gl_context) |
… |
… |
void VideoOutputOpenGL::PrepareFrame(VideoFrame *buffer, FrameScanType t, |
683 | 685 | |
684 | 686 | void VideoOutputOpenGL::Show(FrameScanType scan) |
685 | 687 | { |
| 688 | Q_UNUSED(scan); |
686 | 689 | OpenGLLocker ctx_lock(gl_context); |
687 | 690 | if (IsErrored()) |
688 | 691 | { |
… |
… |
void VideoOutputOpenGL::ShowPIP(VideoFrame *frame, |
864 | 867 | MythPlayer *pipplayer, |
865 | 868 | PIPLocation loc) |
866 | 869 | { |
| 870 | Q_UNUSED(frame); |
867 | 871 | if (!pipplayer) |
868 | 872 | return; |
869 | 873 | |
… |
… |
MythPainter *VideoOutputOpenGL::GetOSDPainter(void) |
1018 | 1022 | // virtual |
1019 | 1023 | bool VideoOutputOpenGL::CanVisualise(AudioPlayer *audio, MythRender *render) |
1020 | 1024 | { |
| 1025 | Q_UNUSED(render); |
1021 | 1026 | return VideoOutput::CanVisualise(audio, gl_context); |
1022 | 1027 | } |
1023 | 1028 | |
… |
… |
bool VideoOutputOpenGL::CanVisualise(AudioPlayer *audio, MythRender *render) |
1025 | 1030 | bool VideoOutputOpenGL::SetupVisualisation(AudioPlayer *audio, |
1026 | 1031 | MythRender *render, const QString &name) |
1027 | 1032 | { |
| 1033 | Q_UNUSED(render); |
1028 | 1034 | return VideoOutput::SetupVisualisation(audio, gl_context, name); |
1029 | 1035 | } |
-
diff --git a/mythtv/libs/libmythtv/videoout_openglvaapi.cpp b/mythtv/libs/libmythtv/videoout_openglvaapi.cpp
index 203c6c5..efbf6c9 100644
a
|
b
|
bool VideoOutputOpenGLVAAPI::SetDeinterlacingEnabled(bool enable) |
224 | 224 | |
225 | 225 | bool VideoOutputOpenGLVAAPI::SetupDeinterlace(bool i, const QString& ovrf) |
226 | 226 | { |
| 227 | Q_UNUSED(ovrf); |
227 | 228 | //m_deintfiltername = !db_vdisp_profile ? "" : |
228 | 229 | // db_vdisp_profile->GetFilteredDeint(ovrf); |
229 | 230 | m_deinterlacing = i; |
-
diff --git a/mythtv/libs/libmythtv/videoout_vdpau.cpp b/mythtv/libs/libmythtv/videoout_vdpau.cpp
index 3b2153e..464daf8 100644
a
|
b
|
void VideoOutputVDPAU::ProcessFrame(VideoFrame *frame, OSD *osd, |
393 | 393 | const PIPMap &pipPlayers, |
394 | 394 | FrameScanType scan) |
395 | 395 | { |
| 396 | Q_UNUSED(osd); |
| 397 | Q_UNUSED(filterList); |
| 398 | Q_UNUSED(scan); |
396 | 399 | QMutexLocker locker(&m_lock); |
397 | 400 | CHECK_ERROR("ProcessFrame"); |
398 | 401 | |
… |
… |
void VideoOutputVDPAU::DrawSlice(VideoFrame *frame, int /* x */, int /* y */, in |
688 | 691 | |
689 | 692 | void VideoOutputVDPAU::Show(FrameScanType scan) |
690 | 693 | { |
| 694 | Q_UNUSED(scan); |
691 | 695 | QMutexLocker locker(&m_lock); |
692 | 696 | CHECK_ERROR("Show"); |
693 | 697 | |
… |
… |
bool VideoOutputVDPAU::InputChanged(const QSize &video_dim_buf, |
714 | 718 | void *codec_private, |
715 | 719 | bool &aspect_only) |
716 | 720 | { |
| 721 | Q_UNUSED(codec_private); |
717 | 722 | LOG(VB_PLAYBACK, LOG_INFO, LOC + |
718 | 723 | QString("InputChanged(%1,%2,%3) '%4'->'%5'") |
719 | 724 | .arg(video_dim_disp.width()).arg(video_dim_disp.height()) |
… |
… |
void VideoOutputVDPAU::SetVideoFlip(void) |
1341 | 1346 | |
1342 | 1347 | void* VideoOutputVDPAU::GetDecoderContext(unsigned char* buf, uint8_t*& id) |
1343 | 1348 | { |
| 1349 | Q_UNUSED(buf); |
| 1350 | Q_UNUSED(id); |
1344 | 1351 | return &m_context; |
1345 | 1352 | } |
-
diff --git a/mythtv/libs/libmythtv/videoout_vdpau.h b/mythtv/libs/libmythtv/videoout_vdpau.h
index 0e8fe33..7ca5310 100644
a
|
b
|
class VideoOutputVDPAU : public VideoOutput |
70 | 70 | QString filename = ""); |
71 | 71 | |
72 | 72 | virtual bool CanVisualise(AudioPlayer *audio, MythRender *render) |
73 | | { return VideoOutput::CanVisualise(audio, m_render); } |
| 73 | { |
| 74 | Q_UNUSED(render); |
| 75 | return VideoOutput::CanVisualise(audio, m_render); |
| 76 | } |
74 | 77 | virtual bool SetupVisualisation(AudioPlayer *audio, MythRender *render, |
75 | 78 | const QString &name) |
76 | | { return VideoOutput::SetupVisualisation(audio, m_render, name); } |
| 79 | { |
| 80 | Q_UNUSED(render); |
| 81 | return VideoOutput::SetupVisualisation(audio, m_render, name); |
| 82 | } |
77 | 83 | virtual QStringList GetVisualiserList(void); |
78 | 84 | virtual void ClearDummyFrame(VideoFrame* frame); |
79 | 85 | virtual void SetVideoFlip(void); |
-
diff --git a/mythtv/libs/libmythtv/videoout_xv.cpp b/mythtv/libs/libmythtv/videoout_xv.cpp
index c487514..cc40654 100644
a
|
b
|
int VideoOutputXv::GrabSuitableXvPort(MythXDisplay* disp, Window root, |
364 | 364 | bool &xvsetdefaults, |
365 | 365 | QString *adaptor_name) |
366 | 366 | { |
| 367 | Q_UNUSED(mcodecid); |
367 | 368 | if (adaptor_name) |
368 | 369 | *adaptor_name = QString::null; |
369 | 370 | |
… |
… |
int VideoOutputXv::GrabSuitableXvPort(MythXDisplay* disp, Window root, |
522 | 523 | */ |
523 | 524 | void VideoOutputXv::CreatePauseFrame(VOSType subtype) |
524 | 525 | { |
| 526 | Q_UNUSED(subtype); |
525 | 527 | if (av_pause_frame.buf) |
526 | 528 | { |
527 | 529 | av_freep(&av_pause_frame.buf); |
-
diff --git a/mythtv/libs/libmythtv/videooutbase.cpp b/mythtv/libs/libmythtv/videooutbase.cpp
index 6ddbbaa..c828bf9 100644
a
|
b
|
bool VideoOutput::InputChanged(const QSize &video_dim_buf, |
766 | 766 | void *codec_private, |
767 | 767 | bool &aspect_only) |
768 | 768 | { |
| 769 | Q_UNUSED(aspect_only); |
769 | 770 | window.InputChanged(video_dim_buf, video_dim_disp, |
770 | 771 | aspect, myth_codec_id, codec_private); |
771 | 772 | |
-
diff --git a/mythtv/libs/libmythtv/videooutbase.h b/mythtv/libs/libmythtv/videooutbase.h
index afc7abf..ae9b0de 100644
a
|
b
|
class VideoOutput |
78 | 78 | OSD *osd) = 0; |
79 | 79 | virtual void Show(FrameScanType) = 0; |
80 | 80 | |
81 | | virtual void WindowResized(const QSize &new_size) {} |
| 81 | virtual void WindowResized(const QSize &new_size) { Q_UNUSED(new_size); } |
82 | 82 | |
83 | 83 | virtual bool InputChanged(const QSize &video_dim_buf, |
84 | 84 | const QSize &video_dim_disp, |
… |
… |
class VideoOutput |
152 | 152 | |
153 | 153 | /// \brief Return true if HW Acceleration is running |
154 | 154 | virtual bool hasHWAcceleration(void) const { return false; } |
155 | | virtual void* GetDecoderContext(unsigned char* buf, uint8_t*& id) { return NULL; } |
| 155 | virtual void* GetDecoderContext(unsigned char* buf, uint8_t*& id) |
| 156 | { Q_UNUSED(buf); Q_UNUSED(id); return NULL; } |
156 | 157 | |
157 | 158 | /// \brief Sets the number of frames played |
158 | 159 | virtual void SetFramesPlayed(long long fp) { framesPlayed = fp; }; |
… |
… |
class VideoOutput |
244 | 245 | virtual QRect GetPIPRect(PIPLocation location, |
245 | 246 | MythPlayer *pipplayer = NULL, |
246 | 247 | bool do_pixel_adj = true) const; |
247 | | virtual void RemovePIP(MythPlayer *pipplayer) { } |
| 248 | virtual void RemovePIP(MythPlayer *pipplayer) { Q_UNUSED(pipplayer); } |
248 | 249 | |
249 | 250 | virtual void SetPIPState(PIPState setting); |
250 | 251 | |
251 | 252 | virtual QString GetOSDRenderer(void) const; |
252 | 253 | virtual MythPainter *GetOSDPainter(void) { return (MythPainter*)osd_painter; } |
253 | 254 | virtual bool GetScreenShot(int width = 0, int height = 0, |
254 | | QString filename = "") { return false; } |
| 255 | QString filename = "") |
| 256 | { Q_UNUSED(width); Q_UNUSED(height); Q_UNUSED(filename); return false; } |
255 | 257 | |
256 | 258 | QString GetFilters(void) const; |
257 | 259 | /// \brief translates caption/dvd button rectangle into 'screen' space |
-
diff --git a/mythtv/libs/libmythtv/videosource.cpp b/mythtv/libs/libmythtv/videosource.cpp
index 31c7339..75a9500 100644
a
|
b
|
class VideoDevice : public PathSetting, public CaptureCardDBStorage |
791 | 791 | |
792 | 792 | void fillSelectionsFromDir(const QDir &dir, bool absPath = true) |
793 | 793 | { |
| 794 | Q_UNUSED(absPath); |
794 | 795 | fillSelectionsFromDir(dir, 0, 255, QString::null, QString::null, false); |
795 | 796 | } |
796 | 797 | |
… |
… |
class VBIDevice : public PathSetting, public CaptureCardDBStorage |
898 | 899 | |
899 | 900 | void fillSelectionsFromDir(const QDir &dir, bool absPath = true) |
900 | 901 | { |
| 902 | Q_UNUSED(absPath); |
901 | 903 | fillSelectionsFromDir(dir, QString::null, QString::null); |
902 | 904 | } |
903 | 905 | |
… |
… |
void ASIConfigurationGroup::probeCard(const QString &device) |
1978 | 1980 | } |
1979 | 1981 | cardinfo->setValue(tr("Valid DVEO ASI card")); |
1980 | 1982 | #else |
| 1983 | Q_UNUSED(device); |
1981 | 1984 | cardinfo->setValue(QString("Not compiled with ASI support")); |
1982 | 1985 | #endif |
1983 | 1986 | } |
-
diff --git a/mythtv/libs/libmythtv/videosource.h b/mythtv/libs/libmythtv/videosource.h
index 96cba4f..0842ae5 100644
a
|
b
|
class MTV_PUBLIC CaptureCardEditor : public QObject, public ConfigurationDialog |
777 | 777 | virtual void Load(void); |
778 | 778 | |
779 | 779 | virtual void Save(void) { } |
780 | | virtual void Save(QString destination) { } |
| 780 | virtual void Save(QString destination) { Q_UNUSED(destination); } |
781 | 781 | |
782 | 782 | public slots: |
783 | 783 | void menu(void); |
-
diff --git a/mythtv/libs/libmythtv/visualisations/videovisualgoom.cpp b/mythtv/libs/libmythtv/visualisations/videovisualgoom.cpp
index 42c2fda..2965935 100644
a
|
b
|
VideoVisualGoom::~VideoVisualGoom() |
66 | 66 | void VideoVisualGoom::Draw(const QRect &area, MythPainter *painter, |
67 | 67 | QPaintDevice *device) |
68 | 68 | { |
| 69 | Q_UNUSED(painter); |
| 70 | Q_UNUSED(device); |
69 | 71 | if (m_disabled || !m_render || area.isEmpty()) |
70 | 72 | return; |
71 | 73 | |
-
diff --git a/mythtv/libs/libmythtv/visualisations/videovisualspectrum.cpp b/mythtv/libs/libmythtv/visualisations/videovisualspectrum.cpp
index 6ac4af3..6cbc787 100644
a
|
b
|
static class VideoVisualSpectrumFactory : public VideoVisualFactory |
202 | 202 | return new VideoVisualSpectrum(audio, render); |
203 | 203 | } |
204 | 204 | |
205 | | virtual bool SupportedRenderer(RenderType type) { return true; } |
| 205 | virtual bool SupportedRenderer(RenderType type) |
| 206 | { |
| 207 | Q_UNUSED(type); |
| 208 | return true; |
| 209 | } |
206 | 210 | } VideoVisualSpectrumFactory; |
-
diff --git a/mythtv/libs/libmythtv/vsync.h b/mythtv/libs/libmythtv/vsync.h
index 94cbd4e..5df9f72 100644
a
|
b
|
class DummyVideoSync : public VideoSync |
220 | 220 | |
221 | 221 | QString getName(void) const { return QString("Dummy"); } |
222 | 222 | bool TryInit(void) { return true; } |
223 | | int WaitForFrame(int sync_delay) { return 0; } |
| 223 | int WaitForFrame(int sync_delay) { Q_UNUSED(sync_delay); return 0; } |
224 | 224 | }; |
225 | 225 | #endif /* VSYNC_H_INCLUDED */ |
-
diff --git a/mythtv/libs/libmythui/mythgenerictree.cpp b/mythtv/libs/libmythui/mythgenerictree.cpp
index 8ad41e3..031f84b 100644
a
|
b
|
MythGenericTree* MythGenericTree::findNode(QList<int> route_of_branches, |
166 | 166 | // In practical terms, mythmusic will use this to force the playback |
167 | 167 | // screen's ManagedTreeList to move to a given track in a given playlist |
168 | 168 | |
| 169 | Q_UNUSED(depth); |
169 | 170 | MythGenericTree *node = NULL; |
170 | 171 | for (int i = 0; i < route_of_branches.count(); i++) |
171 | 172 | { |
-
diff --git a/mythtv/libs/libmythui/mythnotificationcenter.cpp b/mythtv/libs/libmythui/mythnotificationcenter.cpp
index d909741..74064fd 100644
a
|
b
|
int NCPrivate::RemoveScreen(MythNotificationScreen *screen) |
1239 | 1239 | */ |
1240 | 1240 | void NCPrivate::RefreshScreenPosition(int from) |
1241 | 1241 | { |
| 1242 | Q_UNUSED(from); |
1242 | 1243 | QList<MythNotificationScreen*>::iterator it = m_screens.begin(); |
1243 | 1244 | QList<MythNotificationScreen*>::iterator itend = m_screens.end(); |
1244 | 1245 | |
… |
… |
void ShowNotificationError(const QString &msg, |
1485 | 1486 | const VNMask visibility, |
1486 | 1487 | const MythNotification::Priority priority) |
1487 | 1488 | { |
| 1489 | Q_UNUSED(visibility); |
| 1490 | Q_UNUSED(priority); |
1488 | 1491 | ShowNotification(true, msg, from, detail); |
1489 | 1492 | } |
1490 | 1493 | |
… |
… |
void ShowNotification(MythNotification::Type type, |
1530 | 1533 | const MythNotification::Priority priority, |
1531 | 1534 | const QString &style) |
1532 | 1535 | { |
| 1536 | Q_UNUSED(style); |
1533 | 1537 | if (!GetNotificationCenter()) |
1534 | 1538 | return; |
1535 | 1539 | |
-
diff --git a/mythtv/libs/libmythui/mythpainter.cpp b/mythtv/libs/libmythui/mythpainter.cpp
index 0a96b97..24b1447 100644
a
|
b
|
void MythPainter::SetClipRegion(const QRegion &) |
57 | 57 | |
58 | 58 | void MythPainter::Clear(QPaintDevice *device, const QRegion ®ion) |
59 | 59 | { |
| 60 | Q_UNUSED(device); |
| 61 | Q_UNUSED(region); |
60 | 62 | } |
61 | 63 | |
62 | 64 | void MythPainter::DrawImage(int x, int y, MythImage *im, int alpha) |
-
diff --git a/mythtv/libs/libmythui/mythpainter_qimage.h b/mythtv/libs/libmythui/mythpainter_qimage.h
index c75b2e6..2e5462c 100644
a
|
b
|
class MUI_PUBLIC MythQImagePainter : public MythPainter |
47 | 47 | |
48 | 48 | protected: |
49 | 49 | virtual MythImage* GetFormatImagePriv(void) { return new MythImage(this); } |
50 | | virtual void DeleteFormatImagePriv(MythImage *im) { } |
| 50 | virtual void DeleteFormatImagePriv(MythImage *im) { Q_UNUSED(im); } |
51 | 51 | |
52 | 52 | void CheckPaintMode(const QRect &area); |
53 | 53 | |
-
diff --git a/mythtv/libs/libmythui/mythrender_opengl.h b/mythtv/libs/libmythui/mythrender_opengl.h
index a06d153..3aa9086 100644
a
|
b
|
class MUI_PUBLIC MythRenderOpenGL : protected MythRenderContext, public MythRend |
155 | 155 | virtual void PopTransformation(void) = 0; |
156 | 156 | void Flush(bool use_fence); |
157 | 157 | void SetBlend(bool enable); |
158 | | virtual void SetColor(int r, int g, int b, int a) { } |
| 158 | virtual void SetColor(int r, int g, int b, int a) |
| 159 | { |
| 160 | Q_UNUSED(r); |
| 161 | Q_UNUSED(g); |
| 162 | Q_UNUSED(b); |
| 163 | Q_UNUSED(a); |
| 164 | } |
159 | 165 | void SetBackground(int r, int g, int b, int a); |
160 | 166 | void SetFence(void); |
161 | 167 | |
-
diff --git a/mythtv/libs/libmythui/mythrender_opengl1.cpp b/mythtv/libs/libmythui/mythrender_opengl1.cpp
index 3d77371..e9b0bad 100644
a
|
b
|
void MythRenderOpenGL1::EnableShaderObject(uint obj) |
219 | 219 | void MythRenderOpenGL1::SetShaderParams(uint obj, const QMatrix4x4 &m, |
220 | 220 | const char* uniform) |
221 | 221 | { |
| 222 | Q_UNUSED(uniform); |
222 | 223 | GLMatrix4x4 v(m); |
223 | 224 | |
224 | 225 | makeCurrent(); |
-
diff --git a/mythtv/libs/libmythui/mythrender_opengl1.h b/mythtv/libs/libmythui/mythrender_opengl1.h
index ce651df..e629fa2 100644
a
|
b
|
class MUI_PUBLIC MythRenderOpenGL1 : public MythRenderOpenGL |
35 | 35 | const QPen &linePen, int alpha); |
36 | 36 | virtual void DrawRoundRectPriv(const QRect &area, int cornerRadius, |
37 | 37 | const QBrush &fillBrush, const QPen &linePen, |
38 | | int alpha) { } |
| 38 | int alpha) |
| 39 | { |
| 40 | Q_UNUSED(area); |
| 41 | Q_UNUSED(cornerRadius); |
| 42 | Q_UNUSED(fillBrush); |
| 43 | Q_UNUSED(linePen); |
| 44 | Q_UNUSED(alpha); |
| 45 | } |
39 | 46 | |
40 | 47 | virtual void Init2DState(void); |
41 | 48 | virtual void InitProcs(void); |
-
diff --git a/mythtv/libs/libmythui/mythrender_vdpau.cpp b/mythtv/libs/libmythui/mythrender_vdpau.cpp
index fae4e7a..af71e67 100644
a
|
b
|
void MythRenderVDPAU::Decode(uint id, struct vdpau_render_state *render, |
1598 | 1598 | |
1599 | 1599 | static const char* dummy_get_error_string(VdpStatus status) |
1600 | 1600 | { |
| 1601 | Q_UNUSED(status); |
1601 | 1602 | static const char dummy[] = "Unknown"; |
1602 | 1603 | return &dummy[0]; |
1603 | 1604 | } |
-
diff --git a/mythtv/libs/libmythui/myththemedmenu.cpp b/mythtv/libs/libmythui/myththemedmenu.cpp
index ed2e54c..e02fa18 100644
a
|
b
|
MythThemedMenu::MythThemedMenu(const QString &cdir, const QString &menufile, |
102 | 102 | m_state(state), m_allocedstate(false), m_foundtheme(false), |
103 | 103 | m_ignorekeys(false), m_wantpop(false), m_menuPopup(NULL) |
104 | 104 | { |
| 105 | Q_UNUSED(cdir); |
| 106 | Q_UNUSED(allowreorder); |
105 | 107 | if (!m_state) |
106 | 108 | { |
107 | 109 | m_state = new MythThemedMenuState(parent, "themedmenustate"); |
… |
… |
void MythThemedMenu::addButton(const QString &type, const QString &text, |
691 | 693 | const QString &description, |
692 | 694 | const QString &password) |
693 | 695 | { |
| 696 | Q_UNUSED(alttext); |
694 | 697 | ThemedButton newbutton; |
695 | 698 | newbutton.type = type; |
696 | 699 | newbutton.action = action; |
-
diff --git a/mythtv/libs/libmythui/mythudplistener.cpp b/mythtv/libs/libmythui/mythudplistener.cpp
index 502899e..0dff266 100644
a
|
b
|
void MythUDPListener::Disable(void) |
63 | 63 | void MythUDPListener::Process(const QByteArray &buf, QHostAddress sender, |
64 | 64 | quint16 senderPort) |
65 | 65 | { |
| 66 | Q_UNUSED(sender); |
| 67 | Q_UNUSED(senderPort); |
66 | 68 | QString errorMsg; |
67 | 69 | int errorLine = 0; |
68 | 70 | int errorColumn = 0; |
-
diff --git a/mythtv/libs/libmythui/mythuibuttonlist.cpp b/mythtv/libs/libmythui/mythuibuttonlist.cpp
index 3627363..f468277 100644
a
|
b
|
MythUIButtonList::MythUIButtonList(MythUIType *parent, const QString &name, |
41 | 41 | bool showScrollArrows, bool showScrollBar) |
42 | 42 | : MythUIType(parent, name) |
43 | 43 | { |
| 44 | Q_UNUSED(showScrollArrows); |
44 | 45 | m_Area = area; |
45 | 46 | m_showArrow = showArrow; |
46 | 47 | m_showScrollBar = showScrollBar; |
-
diff --git a/mythtv/libs/libmythui/mythuiguidegrid.cpp b/mythtv/libs/libmythui/mythuiguidegrid.cpp
index 593b5e5..22f7110 100644
a
|
b
|
QColor MythUIGuideGrid::calcColor(const QColor &color, int alphaMod) |
297 | 297 | void MythUIGuideGrid::DrawSelf(MythPainter *p, int xoffset, int yoffset, |
298 | 298 | int alphaMod, QRect clipRect) |
299 | 299 | { |
| 300 | Q_UNUSED(xoffset); |
| 301 | Q_UNUSED(yoffset); |
| 302 | Q_UNUSED(clipRect); |
300 | 303 | for (int i = 0; i < m_rowCount; i++) |
301 | 304 | { |
302 | 305 | QList<UIGTCon *>::iterator it = m_allData[i].begin(); |
-
diff --git a/mythtv/libs/libmythui/mythuihelper.cpp b/mythtv/libs/libmythui/mythuihelper.cpp
index 9eec5d6..92091c7 100644
a
|
b
|
bool MythUIHelper::FindThemeFile(QString &path) |
1393 | 1393 | |
1394 | 1394 | QImage *MythUIHelper::LoadScaleImage(QString filename, bool fromcache) |
1395 | 1395 | { |
| 1396 | Q_UNUSED(fromcache); |
1396 | 1397 | LOG(VB_GUI | VB_FILE, LOG_INFO, LOC + |
1397 | 1398 | QString("LoadScaleImage(%1)").arg(filename)); |
1398 | 1399 | |
… |
… |
QImage *MythUIHelper::LoadScaleImage(QString filename, bool fromcache) |
1493 | 1494 | |
1494 | 1495 | QPixmap *MythUIHelper::LoadScalePixmap(QString filename, bool fromcache) |
1495 | 1496 | { |
| 1497 | Q_UNUSED(fromcache); |
1496 | 1498 | LOG(VB_GUI | VB_FILE, LOG_INFO, LOC + |
1497 | 1499 | QString("LoadScalePixmap(%1)").arg(filename)); |
1498 | 1500 | |
-
diff --git a/mythtv/libs/libmythui/mythuiimage.cpp b/mythtv/libs/libmythui/mythuiimage.cpp
index cf1da9e..3eba4b2 100644
a
|
b
|
void MythUIImage::Pulse(void) |
1264 | 1264 | void MythUIImage::DrawSelf(MythPainter *p, int xoffset, int yoffset, |
1265 | 1265 | int alphaMod, QRect clipRect) |
1266 | 1266 | { |
| 1267 | Q_UNUSED(clipRect); |
1267 | 1268 | m_ImagesLock.lock(); |
1268 | 1269 | |
1269 | 1270 | if (m_Images.size() > 0) |
-
diff --git a/mythtv/libs/libmythui/mythuishape.cpp b/mythtv/libs/libmythui/mythuishape.cpp
index 9b0e9ee..0d2a677 100644
a
|
b
|
void MythUIShape::SetLinePen(QPen pen) |
58 | 58 | void MythUIShape::DrawSelf(MythPainter *p, int xoffset, int yoffset, |
59 | 59 | int alphaMod, QRect clipRect) |
60 | 60 | { |
| 61 | Q_UNUSED(clipRect); |
61 | 62 | int alpha = CalcAlpha(alphaMod); |
62 | 63 | QRect area = GetArea(); |
63 | 64 | m_cropRect.CalculateArea(area); |
-
diff --git a/mythtv/libs/libmythui/mythuisimpletext.cpp b/mythtv/libs/libmythui/mythuisimpletext.cpp
index 78cbddc..e276ab3 100644
a
|
b
|
MythUISimpleText::~MythUISimpleText() |
43 | 43 | void MythUISimpleText::DrawSelf(MythPainter *p, int xoffset, int yoffset, |
44 | 44 | int alphaMod, QRect clipRect) |
45 | 45 | { |
| 46 | Q_UNUSED(clipRect); |
46 | 47 | QRect area = GetArea().toQRect(); |
47 | 48 | area.translate(xoffset, yoffset); |
48 | 49 | |
-
diff --git a/mythtv/libs/libmythui/mythuitext.cpp b/mythtv/libs/libmythui/mythuitext.cpp
index a1df1e8..61e4b65 100644
a
|
b
|
void MythUIText::ShiftCanvas(int x, int y) |
412 | 412 | void MythUIText::DrawSelf(MythPainter *p, int xoffset, int yoffset, |
413 | 413 | int alphaMod, QRect clipRect) |
414 | 414 | { |
| 415 | Q_UNUSED(clipRect); |
415 | 416 | if (m_Canvas.isEmpty()) |
416 | 417 | return; |
417 | 418 | |
-
diff --git a/mythtv/libs/libmythui/mythuitype.cpp b/mythtv/libs/libmythui/mythuitype.cpp
index d25ce5b..6c1ff08 100644
a
|
b
|
bool MythUIType::ParseElement( |
1243 | 1243 | { |
1244 | 1244 | //FIXME add movement etc. |
1245 | 1245 | |
| 1246 | Q_UNUSED(filename); |
| 1247 | Q_UNUSED(showWarnings); |
1246 | 1248 | if (element.tagName() == "position") |
1247 | 1249 | SetPosition(parsePoint(element)); |
1248 | 1250 | else if (element.tagName() == "area") |
-
diff --git a/mythtv/libs/libmythui/mythuivideo.cpp b/mythtv/libs/libmythui/mythuivideo.cpp
index 199c2f7..10f6bd0 100644
a
|
b
|
void MythUIVideo::Pulse(void) |
79 | 79 | void MythUIVideo::DrawSelf(MythPainter *p, int xoffset, int yoffset, |
80 | 80 | int alphaMod, QRect clipRect) |
81 | 81 | { |
| 82 | Q_UNUSED(clipRect); |
82 | 83 | QRect area = GetArea(); |
83 | 84 | area.translate(xoffset, yoffset); |
84 | 85 | |
-
diff --git a/mythtv/libs/libmythui/mythuiwebbrowser.cpp b/mythtv/libs/libmythui/mythuiwebbrowser.cpp
index 489e5d9..32b01f2 100644
a
|
b
|
void MythUIWebBrowser::Pulse(void) |
1511 | 1511 | void MythUIWebBrowser::DrawSelf(MythPainter *p, int xoffset, int yoffset, |
1512 | 1512 | int alphaMod, QRect clipRegion) |
1513 | 1513 | { |
| 1514 | Q_UNUSED(clipRegion); |
1514 | 1515 | if (!m_image || m_image->isNull() || !m_browser || m_browser->hasFocus()) |
1515 | 1516 | return; |
1516 | 1517 | |
-
diff --git a/mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp b/mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp
index bcd4b55..716c328 100644
a
|
b
|
|
23 | 23 | JSONSerializer::JSONSerializer( QIODevice *pDevice, const QString &sRequestName ) |
24 | 24 | : m_Stream( pDevice ), m_bCommaNeeded( false ) |
25 | 25 | { |
| 26 | Q_UNUSED(sRequestName); |
26 | 27 | } |
27 | 28 | |
28 | 29 | ////////////////////////////////////////////////////////////////////////////// |
… |
… |
QString JSONSerializer::GetContentType() |
49 | 50 | |
50 | 51 | void JSONSerializer::BeginSerialize( QString &sName ) |
51 | 52 | { |
| 53 | Q_UNUSED(sName); |
| 54 | |
52 | 55 | m_bCommaNeeded = false; |
53 | 56 | |
54 | 57 | m_Stream << "{"; |
… |
… |
void JSONSerializer::EndSerialize() |
74 | 77 | |
75 | 78 | void JSONSerializer::BeginObject( const QString &sName, const QObject *pObject ) |
76 | 79 | { |
| 80 | Q_UNUSED(pObject); |
| 81 | |
77 | 82 | m_bCommaNeeded = false; |
78 | 83 | |
79 | 84 | m_Stream << "\"" << sName << "\": {"; |
… |
… |
void JSONSerializer::BeginObject( const QString &sName, const QObject *pObject |
85 | 90 | |
86 | 91 | void JSONSerializer::EndObject ( const QString &sName, const QObject *pObject ) |
87 | 92 | { |
| 93 | Q_UNUSED(sName); |
| 94 | Q_UNUSED(pObject); |
| 95 | |
88 | 96 | m_bCommaNeeded = false; |
89 | 97 | |
90 | 98 | m_Stream << "}"; |
… |
… |
void JSONSerializer::AddProperty( const QString &sName, |
99 | 107 | const QMetaObject *pMetaParent, |
100 | 108 | const QMetaProperty *pMetaProp ) |
101 | 109 | { |
| 110 | Q_UNUSED(pMetaParent); |
| 111 | Q_UNUSED(pMetaProp); |
| 112 | |
102 | 113 | if (m_bCommaNeeded) |
103 | 114 | m_Stream << ", "; |
104 | 115 | |
-
diff --git a/mythtv/libs/libmythupnp/serializers/serializer.h b/mythtv/libs/libmythupnp/serializers/serializer.h
index c5645b9..f682261 100644
a
|
b
|
class UPNP_PUBLIC Serializer |
34 | 34 | |
35 | 35 | QCryptographicHash m_hash; |
36 | 36 | |
37 | | virtual void BeginSerialize( QString &sName ) {} |
| 37 | virtual void BeginSerialize( QString &sName ) { Q_UNUSED(sName); } |
38 | 38 | virtual void EndSerialize () {} |
39 | 39 | |
40 | 40 | virtual void BeginObject( const QString &sName, const QObject *pObject ) = 0; |
-
diff --git a/mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp b/mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp
index 41ad4fd..fe399e1 100644
a
|
b
|
QString XmlSerializer::GetContentType() |
61 | 61 | |
62 | 62 | void XmlSerializer::BeginSerialize( QString &sName ) |
63 | 63 | { |
| 64 | Q_UNUSED(sName); |
64 | 65 | m_pXmlWriter->writeStartDocument( "1.0" ); |
65 | 66 | // m_pXmlWriter->writeStartElement( m_sRequestName + "Response" ); |
66 | 67 | } |
… |
… |
void XmlSerializer::BeginObject( const QString &sName, const QObject *pObject ) |
109 | 110 | |
110 | 111 | void XmlSerializer::EndObject ( const QString &sName, const QObject *pObject ) |
111 | 112 | { |
| 113 | Q_UNUSED(sName); |
| 114 | Q_UNUSED(pObject); |
112 | 115 | m_pXmlWriter->writeEndElement(); |
113 | 116 | } |
114 | 117 | |
… |
… |
void XmlSerializer::RenderEnum( const QString &sName , |
142 | 145 | const QVariant &vValue, |
143 | 146 | const QMetaProperty *pMetaProp ) |
144 | 147 | { |
| 148 | Q_UNUSED(sName); |
145 | 149 | QString sValue; |
146 | 150 | QMetaEnum metaEnum = pMetaProp->enumerator(); |
147 | 151 | |
… |
… |
QString XmlSerializer::GetContentName( const QString &sName, |
327 | 331 | { |
328 | 332 | // Try to read Name or TypeName from classinfo metadata. |
329 | 333 | |
| 334 | Q_UNUSED(pMetaProp); |
330 | 335 | int nClassIdx = -1; |
331 | 336 | |
332 | 337 | if ( pMetaObject ) |
-
diff --git a/mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp b/mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp
index 3758fbb..570794c 100644
a
|
b
|
XmlPListSerializer::~XmlPListSerializer() |
35 | 35 | |
36 | 36 | void XmlPListSerializer::BeginSerialize(QString &sName) |
37 | 37 | { |
| 38 | Q_UNUSED(sName); |
38 | 39 | m_pXmlWriter->setAutoFormatting(true); |
39 | 40 | m_pXmlWriter->setAutoFormattingIndent(4); |
40 | 41 | m_pXmlWriter->writeStartDocument("1.0"); |
… |
… |
void XmlPListSerializer::BeginObject(const QString &sName, |
238 | 239 | void XmlPListSerializer::EndObject(const QString &sName, |
239 | 240 | const QObject *pObject) |
240 | 241 | { |
| 242 | Q_UNUSED(sName); |
| 243 | Q_UNUSED(pObject); |
241 | 244 | m_pXmlWriter->writeEndElement(); // dict |
242 | 245 | } |
243 | 246 | |
… |
… |
void XmlPListSerializer::AddProperty(const QString &sName, |
246 | 249 | const QMetaObject *pMetaParent, |
247 | 250 | const QMetaProperty *pMetaProp) |
248 | 251 | { |
| 252 | Q_UNUSED(pMetaParent); |
| 253 | Q_UNUSED(pMetaProp); |
249 | 254 | RenderValue(sName, vValue); |
250 | 255 | } |
251 | 256 | |
-
diff --git a/mythtv/libs/libmythupnp/upnpcds.cpp b/mythtv/libs/libmythupnp/upnpcds.cpp
index 29c231d..43cc830 100644
a
|
b
|
bool UPnpCDSExtension::LoadMetadata(const UPnpCDSRequest* pRequest, |
968 | 968 | UPnpCDSExtensionResults* pResults, |
969 | 969 | IDTokenMap tokens, QString currentToken) |
970 | 970 | { |
| 971 | Q_UNUSED(pRequest); |
| 972 | Q_UNUSED(pResults); |
| 973 | Q_UNUSED(tokens); |
| 974 | Q_UNUSED(currentToken); |
971 | 975 | return false; |
972 | 976 | } |
973 | 977 | |
… |
… |
bool UPnpCDSExtension::LoadChildren(const UPnpCDSRequest* pRequest, |
989 | 993 | UPnpCDSExtensionResults* pResults, |
990 | 994 | IDTokenMap tokens, QString currentToken) |
991 | 995 | { |
| 996 | Q_UNUSED(pRequest); |
| 997 | Q_UNUSED(pResults); |
| 998 | Q_UNUSED(tokens); |
| 999 | Q_UNUSED(currentToken); |
992 | 1000 | return false; |
993 | 1001 | } |
994 | 1002 | |
-
diff --git a/mythtv/libs/libmythupnp/upnpdevice.cpp b/mythtv/libs/libmythupnp/upnpdevice.cpp
index 1e9371d..81c32dc 100644
a
|
b
|
void UPnpDeviceDesc::GetValidXML( |
338 | 338 | const QString &sBaseAddress, int nPort, |
339 | 339 | QTextStream &os, const QString &sUserAgent ) |
340 | 340 | { |
| 341 | Q_UNUSED(nPort); |
341 | 342 | #if 0 |
342 | 343 | os.setEncoding( QTextStream::UnicodeUTF8 ); |
343 | 344 | #endif |
-
diff --git a/mythtv/libs/libmythupnp/upnphelpers.cpp b/mythtv/libs/libmythupnp/upnphelpers.cpp
index 2865e15..daf9740 100644
a
|
b
|
QString DLNAProfileName(const QString &mimeType, const QSize &resolution, |
112 | 112 | const double videoFrameRate, const QString &container, |
113 | 113 | const QString &vidCodec, const QString &audioCodec) |
114 | 114 | { |
| 115 | Q_UNUSED(videoFrameRate); |
115 | 116 | QString sProfileName; |
116 | 117 | bool isHD = (resolution.height() >= 720) || (resolution.width() > 720); |
117 | 118 | |
-
diff --git a/mythtv/libs/libmythupnp/websocket.cpp b/mythtv/libs/libmythupnp/websocket.cpp
index 66119bd..6768819 100644
a
|
b
|
void WebSocketWorker::ProcessFrames(QTcpSocket *socket) |
657 | 657 | |
658 | 658 | void WebSocketWorker::HandleControlFrame(const WebSocketFrame &frame) |
659 | 659 | { |
660 | | |
| 660 | Q_UNUSED(frame); |
661 | 661 | } |
662 | 662 | |
663 | 663 | void WebSocketWorker::HandleDataFrame(const WebSocketFrame &frame) |
-
diff --git a/mythtv/libs/libmythupnp/websocket.h b/mythtv/libs/libmythupnp/websocket.h
index 9a130f5..c95c5b4 100644
a
|
b
|
class WebSocketExtension : public QObject |
142 | 142 | WebSocketExtension() : QObject() { }; |
143 | 143 | virtual ~WebSocketExtension() {}; |
144 | 144 | |
145 | | virtual bool HandleTextFrame(const WebSocketFrame &frame) { return false; } |
146 | | virtual bool HandleBinaryFrame(const WebSocketFrame &frame) { return false; } |
| 145 | virtual bool HandleTextFrame(const WebSocketFrame &frame) |
| 146 | { Q_UNUSED(frame); return false; } |
| 147 | virtual bool HandleBinaryFrame(const WebSocketFrame &frame) |
| 148 | { Q_UNUSED(frame); return false; } |
147 | 149 | |
148 | 150 | signals: |
149 | 151 | void SendTextMessage(const QString &); |
-
diff --git a/mythtv/libs/libmythupnp/wsdl.cpp b/mythtv/libs/libmythupnp/wsdl.cpp
index 71f9a39..2b98b8f 100644
a
|
b
|
QDomElement Wsdl::CreateMessage( MethodInfo &oInfo, |
363 | 363 | QString sMsgName, |
364 | 364 | QString sTypeName ) |
365 | 365 | { |
| 366 | Q_UNUSED(oInfo); |
366 | 367 | QDomElement oMsg = createElement( "message" ); |
367 | 368 | |
368 | 369 | oMsg.setAttribute( "name", sMsgName ); |
-
diff --git a/mythtv/libs/libmythupnp/xsd.cpp b/mythtv/libs/libmythupnp/xsd.cpp
index 7c6e942..d19ec99 100755
a
|
b
|
bool Xsd::RenderXSD( HTTPRequest *pRequest, QObject *pClass ) |
513 | 513 | |
514 | 514 | bool Xsd::IsEnum( const QMetaProperty &metaProperty, const QString &sType ) |
515 | 515 | { |
| 516 | Q_UNUSED(sType); |
516 | 517 | if (metaProperty.isEnumType() || metaProperty.isFlagType() ) |
517 | 518 | return true; |
518 | 519 | |
-
diff --git a/mythtv/programs/mythbackend/mainserver.cpp b/mythtv/programs/mythbackend/mainserver.cpp
index 3503b6f..4d961b0 100644
a
|
b
|
void MainServer::DoHandleUndeleteRecording( |
3135 | 3135 | void MainServer::HandleRescheduleRecordings(const QStringList &request, |
3136 | 3136 | PlaybackSock *pbs) |
3137 | 3137 | { |
| 3138 | Q_UNUSED(request); |
3138 | 3139 | ScheduledRecording::RescheduleMatch(0, 0, 0, QDateTime(), |
3139 | 3140 | "HandleRescheduleRecordings"); |
3140 | 3141 | |
… |
… |
void MainServer::HandleMusicFindLyrics(const QStringList &slist, PlaybackSock *p |
6717 | 6718 | |
6718 | 6719 | void MainServer::HandleMusicGetLyricGrabbers(const QStringList &slist, PlaybackSock *pbs) |
6719 | 6720 | { |
| 6721 | Q_UNUSED(slist); |
6720 | 6722 | QStringList strlist; |
6721 | 6723 | |
6722 | 6724 | MythSocket *pbssock = pbs->getSocket(); |
-
diff --git a/mythtv/programs/mythbackend/mythsettings.cpp b/mythtv/programs/mythbackend/mythsettings.cpp
index 053af25..5aa9aa3 100644
a
|
b
|
bool check_settings(MythSettingList &database_settings, |
728 | 728 | const QMap<QString,QString> ¶ms, |
729 | 729 | QString &result) |
730 | 730 | { |
| 731 | Q_UNUSED(database_settings); |
731 | 732 | QMap<QString,QString>::const_iterator it = params.begin(); |
732 | 733 | for (; it != params.end(); ++it) |
733 | 734 | { |
-
diff --git a/mythtv/programs/mythbackend/services/capture.h b/mythtv/programs/mythbackend/services/capture.h
index 55cb177..c534b7d 100644
a
|
b
|
class Capture : public CaptureServices |
36 | 36 | |
37 | 37 | public: |
38 | 38 | |
39 | | Q_INVOKABLE explicit Capture( QObject *parent = 0 ) {} |
| 39 | Q_INVOKABLE explicit Capture( QObject *parent = 0 ) { Q_UNUSED(parent); } |
40 | 40 | |
41 | 41 | public: |
42 | 42 | |
-
diff --git a/mythtv/programs/mythbackend/services/channel.h b/mythtv/programs/mythbackend/services/channel.h
index 800caa5..52936b1 100644
a
|
b
|
class Channel : public ChannelServices |
36 | 36 | |
37 | 37 | public: |
38 | 38 | |
39 | | Q_INVOKABLE explicit Channel( QObject *parent = 0 ) {} |
| 39 | Q_INVOKABLE explicit Channel( QObject *parent = 0 ) { Q_UNUSED(parent); } |
40 | 40 | |
41 | 41 | public: |
42 | 42 | |
-
diff --git a/mythtv/programs/mythbackend/services/content.h b/mythtv/programs/mythbackend/services/content.h
index 25a9661..dc740c9 100644
a
|
b
|
class Content : public ContentServices |
36 | 36 | |
37 | 37 | public: |
38 | 38 | |
39 | | Q_INVOKABLE explicit Content( QObject *parent = 0 ) {} |
| 39 | Q_INVOKABLE explicit Content( QObject *parent = 0 ) { Q_UNUSED(parent); } |
40 | 40 | |
41 | 41 | public: |
42 | 42 | |
-
diff --git a/mythtv/programs/mythbackend/services/dvr.h b/mythtv/programs/mythbackend/services/dvr.h
index ff28e5d..b78160e 100644
a
|
b
|
class Dvr : public DvrServices |
36 | 36 | |
37 | 37 | public: |
38 | 38 | |
39 | | Q_INVOKABLE explicit Dvr( QObject *parent = 0 ) {} |
| 39 | Q_INVOKABLE explicit Dvr( QObject *parent = 0 ) { Q_UNUSED(parent); } |
40 | 40 | |
41 | 41 | public: |
42 | 42 | |
-
diff --git a/mythtv/programs/mythbackend/services/guide.cpp b/mythtv/programs/mythbackend/services/guide.cpp
index cd2e61e..5799067 100644
a
|
b
|
DTC::ProgramList* Guide::GetProgramList(int nStartIndex, |
178 | 178 | const QString &sSort, |
179 | 179 | bool bDescending) |
180 | 180 | { |
| 181 | Q_UNUSED(bOnlyNew); |
181 | 182 | if (!rawStartTime.isNull() && !rawStartTime.isValid()) |
182 | 183 | throw( "StartTime is invalid" ); |
183 | 184 | |
-
diff --git a/mythtv/programs/mythbackend/services/guide.h b/mythtv/programs/mythbackend/services/guide.h
index d81331b..a230b04 100644
a
|
b
|
class Guide : public GuideServices |
43 | 43 | |
44 | 44 | public: |
45 | 45 | |
46 | | Q_INVOKABLE explicit Guide( QObject *parent = 0 ) {} |
| 46 | Q_INVOKABLE explicit Guide( QObject *parent = 0 ) { Q_UNUSED(parent); } |
47 | 47 | |
48 | 48 | public: |
49 | 49 | |
-
diff --git a/mythtv/programs/mythbackend/services/image.cpp b/mythtv/programs/mythbackend/services/image.cpp
index f81ac4a..44f1404 100644
a
|
b
|
|
39 | 39 | */ |
40 | 40 | QString Image::GetImageInfo( int id, const QString &tag ) |
41 | 41 | { |
| 42 | Q_UNUSED(id); |
| 43 | Q_UNUSED(tag); |
42 | 44 | // ImageManagerBe *mgr = ImageManagerBe::getInstance(); |
43 | 45 | |
44 | 46 | // // Find image in DB |
-
diff --git a/mythtv/programs/mythbackend/services/image.h b/mythtv/programs/mythbackend/services/image.h
index 3449604..e52e13b 100644
a
|
b
|
class Image : public ImageServices |
32 | 32 | Q_OBJECT |
33 | 33 | |
34 | 34 | public: |
35 | | Q_INVOKABLE explicit Image( QObject *parent = 0 ) {} |
| 35 | Q_INVOKABLE explicit Image( QObject *parent = 0 ) { Q_UNUSED(parent); } |
36 | 36 | |
37 | 37 | public: |
38 | 38 | QString GetImageInfo ( int Id, |
-
diff --git a/mythtv/programs/mythbackend/services/video.h b/mythtv/programs/mythbackend/services/video.h
index 1fe1ecb..f15c8e4 100644
a
|
b
|
class Video : public VideoServices |
38 | 38 | |
39 | 39 | public: |
40 | 40 | |
41 | | Q_INVOKABLE explicit Video( QObject *parent = 0 ) {} |
| 41 | Q_INVOKABLE explicit Video( QObject *parent = 0 ) { Q_UNUSED(parent); } |
42 | 42 | |
43 | 43 | public: |
44 | 44 | |
-
diff --git a/mythtv/programs/mythcommflag/CommDetector2.cpp b/mythtv/programs/mythcommflag/CommDetector2.cpp
index 5815d61..38666ee 100644
a
|
b
|
static void PrintReportMap(ostream &out, |
865 | 865 | void CommDetector2::PrintFullMap( |
866 | 866 | ostream &out, const frm_dir_map_t *comm_breaks, bool verbose) const |
867 | 867 | { |
| 868 | Q_UNUSED(comm_breaks); |
| 869 | Q_UNUSED(verbose); |
868 | 870 | FrameAnalyzer::FrameMap logoMap, blankMap, blankBreakMap, sceneMap; |
869 | 871 | if (logoFinder) |
870 | 872 | logoMap = logoFinder->GetMap(0); |
-
diff --git a/mythtv/programs/mythcommflag/main.cpp b/mythtv/programs/mythcommflag/main.cpp
index 7969f67..a1e820b 100644
a
|
b
|
static int FlagCommercials(QString filename, int jobid, |
995 | 995 | |
996 | 996 | static int RebuildSeekTable(ProgramInfo *pginfo, int jobid) |
997 | 997 | { |
| 998 | Q_UNUSED(jobid); |
998 | 999 | QString filename = get_filename(pginfo); |
999 | 1000 | |
1000 | 1001 | if (!DoesFileExist(pginfo)) |
-
diff --git a/mythtv/programs/mythfrontend/audiogeneralsettings.cpp b/mythtv/programs/mythfrontend/audiogeneralsettings.cpp
index 2f84a17..816a1d8 100644
a
|
b
|
void AudioConfigSettings::AudioRescan() |
254 | 254 | |
255 | 255 | void AudioConfigSettings::UpdateVisibility(const QString &device) |
256 | 256 | { |
| 257 | Q_UNUSED(device); |
257 | 258 | if (!m_MaxAudioChannels || !m_AudioUpmix || !m_AudioUpmixType) |
258 | 259 | return; |
259 | 260 | |
-
diff --git a/mythtv/programs/mythfrontend/guidegrid.cpp b/mythtv/programs/mythfrontend/guidegrid.cpp
index 86aa8f2..07d5683 100644
a
|
b
|
void GuideUpdateProgramRow::fillProgramRowInfosWith(int row, int chanNum, |
1644 | 1644 | QDateTime start, |
1645 | 1645 | ProgramList *proglist) |
1646 | 1646 | { |
| 1647 | Q_UNUSED(chanNum); |
1647 | 1648 | if (row < 0 || row >= m_channelCount || |
1648 | 1649 | start != m_currentStartTime) |
1649 | 1650 | { |
-
diff --git a/mythtv/programs/mythfrontend/playbackbox.cpp b/mythtv/programs/mythfrontend/playbackbox.cpp
index a5bc8ad..cf79565 100644
a
|
b
|
PlaybackBox::PlaybackBox(MythScreenStack *parent, QString name, |
439 | 439 | m_groupSelected(false), |
440 | 440 | m_passwordEntered(false) |
441 | 441 | { |
| 442 | Q_UNUSED(showTV); |
442 | 443 | for (uint i = 0; i < sizeof(m_artImage) / sizeof(MythUIImage*); i++) |
443 | 444 | { |
444 | 445 | m_artImage[i] = NULL; |
-
diff --git a/mythtv/programs/mythfrontend/videolist.cpp b/mythtv/programs/mythfrontend/videolist.cpp
index 7bcbda0..d0b50cf 100644
a
|
b
|
class VideoListImp |
408 | 408 | |
409 | 409 | bool Delete(unsigned int video_id, VideoList &dummy) |
410 | 410 | { |
| 411 | Q_UNUSED(dummy); |
411 | 412 | bool ret = false; |
412 | 413 | MetadataPtr mp = m_metadata.byID(video_id); |
413 | 414 | if (mp) |
-
diff --git a/mythtv/programs/mythfrontend/viewscheduled.cpp b/mythtv/programs/mythfrontend/viewscheduled.cpp
index e385759..847d9fb 100644
a
|
b
|
ViewScheduled::ViewScheduled(MythScreenStack *parent, TV* player, bool showTV) |
60 | 60 | m_curinput(0), |
61 | 61 | m_player(player) |
62 | 62 | { |
| 63 | Q_UNUSED(showTV); |
63 | 64 | gCoreContext->addListener(this); |
64 | 65 | } |
65 | 66 | |
-
diff --git a/mythtv/programs/mythfrontend/viewschedulediff.cpp b/mythtv/programs/mythfrontend/viewschedulediff.cpp
index 66a5877..174273c 100644
a
|
b
|
bool ViewScheduleDiff::keyPressEvent(QKeyEvent *e) |
96 | 96 | |
97 | 97 | void ViewScheduleDiff::showStatus(MythUIButtonListItem *item) |
98 | 98 | { |
| 99 | Q_UNUSED(item); |
99 | 100 | ProgramInfo *pi = CurrentProgram(); |
100 | 101 | if (!pi) |
101 | 102 | return; |
-
diff --git a/mythtv/programs/mythlcdserver/lcdprocclient.cpp b/mythtv/programs/mythlcdserver/lcdprocclient.cpp
index b1f1191..532d031 100644
a
|
b
|
void LCDProcClient::describeServer() |
785 | 785 | |
786 | 786 | void LCDProcClient::veryBadThings(QAbstractSocket::SocketError error) |
787 | 787 | { |
| 788 | Q_UNUSED(error); |
788 | 789 | // Deal with failures to connect and inabilities to communicate |
789 | 790 | LOG(VB_GENERAL, LOG_ERR, QString("Could not connect to LCDd: %1") |
790 | 791 | .arg(m_socket->errorString())); |
… |
… |
void LCDProcClient::reset() |
1824 | 1825 | |
1825 | 1826 | void LCDProcClient::dobigclock (bool init) |
1826 | 1827 | { |
| 1828 | Q_UNUSED(init); |
1827 | 1829 | QString aString; |
1828 | 1830 | QString time = QTime::currentTime().toString( m_timeFormat ); |
1829 | 1831 | int toffset = 0; |
-
diff --git a/mythtv/programs/mythmediaserver/controlrequesthandler.cpp b/mythtv/programs/mythmediaserver/controlrequesthandler.cpp
index 356937d..403c25b 100644
a
|
b
|
bool ControlRequestHandler::AnnounceSocket(void) |
25 | 25 | bool ControlRequestHandler::HandleQuery(SocketHandler *socket, |
26 | 26 | QStringList &commands, QStringList &slist) |
27 | 27 | { |
| 28 | Q_UNUSED(socket); |
| 29 | Q_UNUSED(slist); |
28 | 30 | bool handled = false; |
29 | 31 | QString command = commands[0]; |
30 | 32 | |
-
diff --git a/mythtv/programs/mythtranscode/audioreencodebuffer.h b/mythtv/programs/mythtranscode/audioreencodebuffer.h
index 041e7ea..2b7198f 100644
a
|
b
|
class AudioReencodeBuffer : public AudioOutput |
59 | 59 | virtual void ToggleMute(void) { } |
60 | 60 | virtual MuteState GetMuteState(void) const { return kMuteOff; } |
61 | 61 | virtual MuteState IterateMutedChannels(void) { return kMuteOff; } |
62 | | virtual void SetSWVolume(int new_volume, bool save) { return; } |
| 62 | virtual void SetSWVolume(int new_volume, bool save) |
| 63 | { Q_UNUSED(new_volume); Q_UNUSED(save); return; } |
63 | 64 | virtual int GetSWVolume(void) { return 100; } |
64 | 65 | virtual bool CanPassthrough(int, int, int, int) const |
65 | 66 | { return m_initpassthru; } |
-
diff --git a/mythtv/programs/mythtranscode/transcode.cpp b/mythtv/programs/mythtranscode/transcode.cpp
index d1bc685..ebaa4b3 100644
a
|
b
|
int Transcode::TranscodeFile(const QString &inputname, |
218 | 218 | int AudioTrackNo, |
219 | 219 | bool passthru) |
220 | 220 | { |
| 221 | Q_UNUSED(profileName); |
221 | 222 | QDateTime curtime = MythDate::current(); |
222 | 223 | QDateTime statustime = curtime; |
223 | 224 | int audioFrame = 0; |
-
diff --git a/mythtv/programs/mythtv-setup/importicons.cpp b/mythtv/programs/mythtv-setup/importicons.cpp
index 66945d1..cda9032 100644
a
|
b
|
void ImportIconsWizard::Init() |
132 | 132 | |
133 | 133 | void ImportIconsWizard::enableControls(dialogState state, bool selectEnabled) |
134 | 134 | { |
| 135 | Q_UNUSED(selectEnabled); |
135 | 136 | switch (state) |
136 | 137 | { |
137 | 138 | case STATE_NORMAL: |
-
diff --git a/mythtv/programs/mythutil/backendutils.cpp b/mythtv/programs/mythutil/backendutils.cpp
index 15290a3..c968f49 100644
a
|
b
|
static int RawSendEvent(const QStringList &eventStringList) |
38 | 38 | |
39 | 39 | static int ClearSettingsCache(const MythUtilCommandLineParser &cmdline) |
40 | 40 | { |
| 41 | Q_UNUSED(cmdline); |
41 | 42 | if (gCoreContext->ConnectToMasterServer(false, false)) |
42 | 43 | { |
43 | 44 | gCoreContext->SendMessage("CLEAR_SETTINGS_CACHE"); |
… |
… |
static int SendSystemEvent(const MythUtilCommandLineParser &cmdline) |
64 | 65 | |
65 | 66 | static int Reschedule(const MythUtilCommandLineParser &cmdline) |
66 | 67 | { |
| 68 | Q_UNUSED(cmdline); |
67 | 69 | if (gCoreContext->ConnectToMasterServer(false, false)) |
68 | 70 | { |
69 | 71 | ScheduledRecording::RescheduleMatch(0, 0, 0, QDateTime(), |
… |
… |
static int Reschedule(const MythUtilCommandLineParser &cmdline) |
78 | 80 | |
79 | 81 | static int ScanVideos(const MythUtilCommandLineParser &cmdline) |
80 | 82 | { |
| 83 | Q_UNUSED(cmdline); |
81 | 84 | if (gCoreContext->ConnectToMasterServer(false, false)) |
82 | 85 | { |
83 | 86 | gCoreContext->SendReceiveStringList(QStringList() << "SCAN_VIDEOS"); |
-
diff --git a/mythtv/programs/mythutil/messageutils.cpp b/mythtv/programs/mythutil/messageutils.cpp
index a0afee0..3a4f217 100644
a
|
b
|
const QString kNotification = |
42 | 42 | |
43 | 43 | static int PrintMTemplate(const MythUtilCommandLineParser &cmdline) |
44 | 44 | { |
| 45 | Q_UNUSED(cmdline); |
45 | 46 | cerr << kMessage.toLocal8Bit().constData() << endl; |
46 | 47 | return GENERIC_EXIT_OK; |
47 | 48 | } |
48 | 49 | |
49 | 50 | static int PrintNTemplate(const MythUtilCommandLineParser &cmdline) |
50 | 51 | { |
| 52 | Q_UNUSED(cmdline); |
51 | 53 | cerr << kNotification.toLocal8Bit().constData() << endl; |
52 | 54 | return GENERIC_EXIT_OK; |
53 | 55 | } |
-
diff --git a/mythtv/programs/mythutil/mpegutils.cpp b/mythtv/programs/mythutil/mpegutils.cpp
index 8896fc0..2d8295c 100644
a
|
b
|
class PrintMPEGStreamListener : public MPEGStreamListener, public PrintOutput |
476 | 476 | |
477 | 477 | void HandlePMT(uint program_num, const ProgramMapTable *pmt) |
478 | 478 | { |
| 479 | Q_UNUSED(program_num); |
479 | 480 | if (pmt && (!m_autopts || m_use_pid[pmt->tsheader()->PID()])) |
480 | 481 | Output(pmt); |
481 | 482 | if (pmt && m_autopts) |
… |
… |
class PrintMPEGStreamListener : public MPEGStreamListener, public PrintOutput |
500 | 501 | } |
501 | 502 | } |
502 | 503 | |
503 | | void HandleEncryptionStatus(uint program_number, bool) |
| 504 | void HandleEncryptionStatus(uint program_number, bool encrypted) |
504 | 505 | { |
| 506 | Q_UNUSED(program_number); |
| 507 | Q_UNUSED(encrypted); |
505 | 508 | } |
506 | 509 | |
507 | 510 | void HandleSplice(const SpliceInformationTable *sit) |
… |
… |
class PrintATSCMainStreamListener : |
547 | 550 | |
548 | 551 | void HandleVCT(uint pid, const VirtualChannelTable *vct) |
549 | 552 | { |
| 553 | Q_UNUSED(pid); |
550 | 554 | Output(vct); |
551 | 555 | } |
552 | 556 | }; |
… |
… |
class PrintATSCAuxStreamListener : |
605 | 609 | uint pid, const TerrestrialVirtualChannelTable *tvct) |
606 | 610 | { |
607 | 611 | // already handled in HandleVCT |
| 612 | Q_UNUSED(pid); |
| 613 | Q_UNUSED(tvct); |
608 | 614 | } |
609 | 615 | |
610 | 616 | virtual void HandleCVCT(uint pid, const CableVirtualChannelTable *cvct) |
611 | 617 | { |
612 | 618 | // already handled in HandleVCT |
| 619 | Q_UNUSED(pid); |
| 620 | Q_UNUSED(cvct); |
613 | 621 | } |
614 | 622 | |
615 | 623 | virtual void HandleRRT(const RatingRegionTable *rrt) |
… |
… |
class PrintDVBMainStreamListener : |
668 | 676 | |
669 | 677 | virtual void HandleSDT(uint tsid, const ServiceDescriptionTable *sdt) |
670 | 678 | { |
| 679 | Q_UNUSED(tsid); |
671 | 680 | Output(sdt); |
672 | 681 | } |
673 | 682 | |
… |
… |
class PrintDVBOtherStreamListener : |
687 | 696 | |
688 | 697 | virtual void HandleSDTo(uint tsid, const ServiceDescriptionTable *sdt) |
689 | 698 | { |
| 699 | Q_UNUSED(tsid); |
690 | 700 | Output(sdt); |
691 | 701 | } |
692 | 702 | |
-
diff --git a/mythtv/programs/mythutil/musicmetautils.cpp b/mythtv/programs/mythutil/musicmetautils.cpp
index 2e2d7e0..f738a5d 100644
a
|
b
|
static int ExtractImage(const MythUtilCommandLineParser &cmdline) |
179 | 179 | |
180 | 180 | static int ScanMusic(const MythUtilCommandLineParser &cmdline) |
181 | 181 | { |
| 182 | Q_UNUSED(cmdline); |
182 | 183 | MusicFileScanner *fscan = new MusicFileScanner(); |
183 | 184 | QStringList dirList; |
184 | 185 | |
… |
… |
static int ScanMusic(const MythUtilCommandLineParser &cmdline) |
197 | 198 | |
198 | 199 | static int UpdateRadioStreams(const MythUtilCommandLineParser &cmdline) |
199 | 200 | { |
| 201 | Q_UNUSED(cmdline); |
200 | 202 | // check we have the correct Music Schema Version (maybe the FE hasn't been run yet) |
201 | 203 | if (gCoreContext->GetNumSetting("MusicDBSchemaVer", 0) < 1024) |
202 | 204 | { |