Ticket #12996: 0006-Fix-compiler-unused-parameter-error-messages.patch

File 0006-Fix-compiler-unused-parameter-error-messages.patch, 138.4 KB (added by David Hampton <mythtv@…>, 3 years ago)

Fix compiler 'unused parameter' error messages.

  • mythtv/external/FFmpeg/libavformat/os_support.h

    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) 
    7272#if HAVE_DOS_PATHS
    7373    if (path[0] && path[1] == ':')
    7474        return 1;
     75#else
     76    (void) path;
    7577#endif
    7678    return 0;
    7779}
  • mythtv/libs/libmyth/audio/audioconvert.h

    diff --git a/mythtv/libs/libmyth/audio/audioconvert.h b/mythtv/libs/libmyth/audio/audioconvert.h
    index b9be02f..8dd2368 100644
    a b public: 
    5151    bool operator==(AudioConvert& rhs) const
    5252    { return m_in == rhs.m_in && m_out == rhs.m_out; }
    5353    bool operator!=(AudioConvert& rhs) const
    54     { return m_in != m_out; }
     54    { Q_UNUSED(rhs); return m_in != m_out; }
    5555
    5656    void DeinterleaveSamples(int channels,
    5757                             uint8_t* output, const uint8_t* input,
  • mythtv/libs/libmyth/audio/audiooutputalsa.cpp

    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) 
    246246
    247247QByteArray *AudioOutputALSA::GetELD(int card, int device, int subdevice)
    248248{
     249    Q_UNUSED(subdevice);
    249250    QByteArray *result = NULL;
    250251    snd_hctl_t *hctl;
    251252    snd_hctl_elem_t *elem;
  • mythtv/libs/libmyth/audio/audiooutputbase.h

    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 
    7676    virtual bool IsUpmixing(void);
    7777    virtual bool ToggleUpmix(void);
    7878    virtual bool CanUpmix(void);
    79     virtual bool CanProcess(AudioFormat fmt) { return true; }
     79    virtual bool CanProcess(AudioFormat fmt) { Q_UNUSED(fmt); return true; }
    8080    virtual uint32_t CanProcess(void)
    8181    {
    8282        // we support all codec
    class AudioOutputBase : public AudioOutput, public MThread 
    137137    virtual int  GetBufferedOnSoundcard(void) const = 0;
    138138    // Default implementation only supports 2ch s16le at 48kHz
    139139    virtual AudioOutputSettings* GetOutputSettings(bool digital)
    140         { return new AudioOutputSettings; }
     140        { Q_UNUSED(digital); return new AudioOutputSettings; }
    141141    // You need to call this from any implementation in the dtor.
    142142    void KillAudio(void);
    143143
  • mythtv/libs/libmyth/audio/audiooutputpulse.cpp

    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) 
    666666
    667667void AudioOutputPulseAudio::WriteCallback(pa_stream *s, size_t size, void *arg)
    668668{
     669    Q_UNUSED(s);
     670    Q_UNUSED(size);
    669671    AudioOutputPulseAudio *audoutP = static_cast<AudioOutputPulseAudio*>(arg);
    670672    pa_threaded_mainloop_signal(audoutP->mainloop, 0);
    671673}
    672674
    673675void AudioOutputPulseAudio::BufferFlowCallback(pa_stream *s, void *tag)
    674676{
     677    Q_UNUSED(s);
    675678    VBERROR(QString("stream buffer %1 flow").arg((char*)tag));
    676679}
    677680
    void AudioOutputPulseAudio::OpCompletionCallback( 
    691694void AudioOutputPulseAudio::ServerInfoCallback(
    692695    pa_context *context, const pa_server_info *inf, void *arg)
    693696{
     697    Q_UNUSED(context);
     698    Q_UNUSED(arg);
    694699    QString fn_log_tag = "ServerInfoCallback, ";
    695700
    696701    VBAUDIO(fn_log_tag +
    void AudioOutputPulseAudio::ServerInfoCallback( 
    703708void AudioOutputPulseAudio::SinkInfoCallback(
    704709    pa_context *c, const pa_sink_info *info, int eol, void *arg)
    705710{
     711    Q_UNUSED(c);
     712    Q_UNUSED(eol);
    706713    AudioOutputPulseAudio *audoutP = static_cast<AudioOutputPulseAudio*>(arg);
    707714
    708715    if (!info)
  • mythtv/libs/libmyth/mythmediamonitor.cpp

    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, 
    610610                                        int             mediaType,
    611611                                        const QString  &extensions)
    612612{
     613    Q_UNUSED(key);
    613614    if (m_handlerMap.count(destination) == 0)
    614615    {
    615616        MHData  mhd = { callback, mediaType, destination, description };
  • mythtv/libs/libmyth/mythterminal.cpp

    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) 
    154154void MythTerminal::ProcessFinished(
    155155    int exitCode, QProcess::ExitStatus exitStatus)
    156156{
     157    Q_UNUSED(exitStatus);
    157158    QMutexLocker locker(&lock);
    158159    AddText(tr("*** Exited with status: %1 ***").arg(exitCode));
    159160    setEnabled(false);
  • mythtv/libs/libmyth/programinfo.cpp

    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 
    24602460void ProgramInfo::SetAvailableStatus(
    24612461    AvailableStatusType status, const QString &where)
    24622462{
     2463    Q_UNUSED(where);
    24632464    if (status != availableStatus)
    24642465    {
    24652466        LOG(VB_GUI, LOG_INFO,
  • mythtv/libs/libmythbase/housekeeper.h

    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 
    6262    virtual QDateTime UpdateLastRun(QDateTime last, bool successful=true);
    6363    virtual void    SetLastRun(QDateTime last, bool successful=true);
    6464
    65     virtual bool    DoCheckRun(QDateTime now)       { return false;        }
     65    virtual bool    DoCheckRun(QDateTime now)       { Q_UNUSED(now); return false; }
    6666    virtual bool    DoRun(void)                     { return false;         }
    6767
    6868    virtual void    Terminate(void)                 {}
  • mythtv/libs/libmythbase/logging.cpp

    diff --git a/mythtv/libs/libmythbase/logging.cpp b/mythtv/libs/libmythbase/logging.cpp
    index b8be407..adab36d 100644
    a b void LoggerThread::launchLogServer(void) 
    541541/// \param  msg    The message received (can be multi-part)
    542542void LoggerThread::messageReceived(const QList<QByteArray> &msg)
    543543{
     544    Q_UNUSED(msg);
    544545    m_initialWaiting = false;
    545546    // cout << "ping" << endl;
    546547    loggingGetTimeStamp(&m_epoch, NULL);
  • mythtv/libs/libmythbase/loggingserver.cpp

    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) 
    942942    QByteArray clientBa = QByteArray::fromHex(clientId.toLocal8Bit());
    943943    msg << clientBa << QByteArray("");
    944944    m_zmqInSock->sendMessage(msg);
     945#else
     946    Q_UNUSED(clientId);
    945947#endif
    946948}
    947949
  • mythtv/libs/libmythbase/mythcommandlineparser.cpp

    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) 
    779779 */
    780780void CommandLineArg::SetRequires(CommandLineArg *other, bool forward)
    781781{
     782    Q_UNUSED(forward);
    782783    int i;
    783784    bool replaced = false;
    784785    other->IncrRef();
  • mythtv/libs/libmythbase/mythcorecontext.cpp

    diff --git a/mythtv/libs/libmythbase/mythcorecontext.cpp b/mythtv/libs/libmythbase/mythcorecontext.cpp
    index ea980bb..b1c2110 100644
    a b MythSocket *MythCoreContext::ConnectCommandSocket( 
    406406    const QString &hostname, int port, const QString &announce,
    407407    bool *p_proto_mismatch, bool gui, int maxConnTry, int setup_timeout)
    408408{
     409    Q_UNUSED(gui);
    409410    MythSocket *serverSock = NULL;
    410411
    411412    {
    bool MythCoreContext::SendReceiveStringList( 
    12521253    QStringList &strlist, bool quickTimeout, bool block)
    12531254{
    12541255    QString msg;
     1256    Q_UNUSED(block);
    12551257    if (HasGUI() && IsUIThread())
    12561258    {
    12571259        msg = "SendReceiveStringList(";
  • mythtv/libs/libmythbase/mythsession.cpp

    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 
    3737bool MythUserSession::CheckPermission(const QString &context,
    3838                                      uint permission)
    3939{
     40    Q_UNUSED(context);
     41    Q_UNUSED(permission);
    4042    if (!gCoreContext->IsMasterBackend())
    4143    {
    4244        // TODO: Connect to master and do checking there
  • mythtv/libs/libmythbase/mythsingledownload.cpp

    diff --git a/mythtv/libs/libmythbase/mythsingledownload.cpp b/mythtv/libs/libmythbase/mythsingledownload.cpp
    index 5a423be..475670f 100644
    a b void MythSingleDownload::Cancel(void) 
    114114
    115115void MythSingleDownload::Progress(qint64 bytesRead, qint64 totalBytes)
    116116{
     117    Q_UNUSED(totalBytes);
    117118    if (m_maxsize && bytesRead>=m_maxsize)
    118119    {
    119120        LOG(VB_GENERAL, LOG_INFO, LOC + QString("Reached specified max file size (%1 bytes)").arg(m_maxsize));
  • mythtv/libs/libmythbase/mythsystem.cpp

    diff --git a/mythtv/libs/libmythbase/mythsystem.cpp b/mythtv/libs/libmythbase/mythsystem.cpp
    index 93b64cf..4cf45b8 100644
    a b class MythSystemLegacyWrapper : public MythSystem 
    5151        Priority cpuPriority,
    5252        Priority diskPriority)
    5353    {
     54        Q_UNUSED(cpuPriority);
     55        Q_UNUSED(diskPriority);
     56
    5457        if (args.empty())
    5558            return NULL;
    5659
  • mythtv/libs/libmythbase/mythsystemlegacy.cpp

    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) : 
    186186
    187187    m_settings(other.m_settings)
    188188{
     189    Q_UNUSED(other);
    189190    m_semReady.release(other.m_semReady.available());
    190191}
    191192
  • mythtv/libs/libmythbase/mythtimezone.cpp

    diff --git a/mythtv/libs/libmythbase/mythtimezone.cpp b/mythtv/libs/libmythbase/mythtimezone.cpp
    index 6a081a4..adfaa44 100644
    a b bool checkTimeZone(void) 
    315315/// MythContext) connection to the backend.
    316316bool checkTimeZone(const QStringList &master_settings)
    317317{
     318    Q_UNUSED(master_settings);
    318319    return true;
    319320}
    320321
  • mythtv/libs/libmythfreemheg/ParseText.cpp

    diff --git a/mythtv/libs/libmythfreemheg/ParseText.cpp b/mythtv/libs/libmythfreemheg/ParseText.cpp
    index ecd7801..c03dd9e 100644
    a b MHParseText::MHParseText(QByteArray &program) 
    5050                m_nStringLength(0), m_p(0)
    5151
    5252{
     53    Q_UNUSED(program);
    5354}
    5455
    5556MHParseText::~MHParseText()
  • mythtv/libs/libmythfreemheg/Root.h

    diff --git a/mythtv/libs/libmythfreemheg/Root.h b/mythtv/libs/libmythfreemheg/Root.h
    index 44fb3f1..01ee10f 100644
    a b class MHRoot 
    183183    // Actions on Interactibles.
    184184    virtual void SetInteractionStatus(bool /*newStatus*/, MHEngine *) { InvalidAction("SetInteractionStatus"); }
    185185    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"); }
    187188    virtual bool GetHighlightStatus(void) { InvalidAction("GetHighlightStatus"); return false; }
    188189
    189190    // Actions on Sliders.
  • mythtv/libs/libmythfreemheg/Text.h

    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 
    106106    virtual void SetHighlightStatus(bool newStatus, MHEngine *engine)
    107107    { InteractSetHighlightStatus(newStatus, engine); }
    108108    virtual bool GetHighlightStatus(void) { return InteractGetHighlightStatus(); }
    109     virtual void Deactivation(MHEngine *engine) { InteractDeactivation(); }
     109    virtual void Deactivation(MHEngine *engine)
     110        { Q_UNUSED(engine); InteractDeactivation(); }
    110111};
    111112
    112113// Get Text Data - get the data out of a text object.
  • mythtv/libs/libmythfreemheg/Visible.h

    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 
    183183    virtual void SetHighlightStatus(bool newStatus, MHEngine *engine)
    184184    { InteractSetHighlightStatus(newStatus, engine); }
    185185    virtual bool GetHighlightStatus(void) { return InteractGetHighlightStatus(); }
    186     virtual void Deactivation(MHEngine *engine) { InteractDeactivation(); }
     186    virtual void Deactivation(MHEngine *engine)
     187        { Q_UNUSED(engine); InteractDeactivation(); }
    187188
    188189    // Actions
    189190    virtual void Step(int nbSteps, MHEngine *engine);
    class MHEntryField : public MHVisible, public MHInteractible 
    236237    virtual void SetHighlightStatus(bool newStatus, MHEngine *engine)
    237238    { InteractSetHighlightStatus(newStatus, engine); }
    238239    virtual bool GetHighlightStatus(void) { return InteractGetHighlightStatus(); }
    239     virtual void Deactivation(MHEngine *engine) { InteractDeactivation(); }
     240    virtual void Deactivation(MHEngine *engine)
     241        { Q_UNUSED(engine); InteractDeactivation(); }
    240242};
    241243
    242244// Button - not needed for UK MHEG.
    class MHSetInteractionStatus: public MHActionBool 
    400402  public:
    401403    MHSetInteractionStatus(): MHActionBool("SetInteractionStatus") {}
    402404    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        }
    404409};
    405410
    406411class MHGetInteractionStatus: public MHActionObjectRef
    class MHSetHighlightStatus: public MHActionBool 
    416421  public:
    417422    MHSetHighlightStatus(): MHActionBool("SetHighlightStatus") {}
    418423    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        }
    420428};
    421429
    422430class MHGetHighlightStatus: public MHActionObjectRef
  • mythtv/libs/libmythmetadata/imagemanager.cpp

    diff --git a/mythtv/libs/libmythmetadata/imagemanager.cpp b/mythtv/libs/libmythmetadata/imagemanager.cpp
    index e0e72d9..3f2f724 100644
    a b public: 
    110110    //! Delete thumbnails associated with device
    111111    void RemoveThumbs(bool eject = false)
    112112    {
     113        Q_UNUSED(eject);
    113114        // Remove thumbnails
    114115        QString dir = QString("%1/" TEMP_SUBDIR "/%2").arg(GetConfDir(), m_thumbs);
    115116        LOG(VB_FILE, LOG_INFO, LOC + QString("Removing thumbnails in %1").arg(dir));
  • mythtv/libs/libmythprotoserver/requesthandler/basehandler.cpp

    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, 
    5959bool BaseRequestHandler::HandleQuery(SocketHandler *sock,
    6060                                QStringList &commands, QStringList &slist)
    6161{
     62    Q_UNUSED(slist);
    6263    QString command = commands[0];
    6364    bool res = false;
    6465
  • mythtv/libs/libmythprotoserver/requesthandler/messagehandler.cpp

    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) 
    7979// outbound events from master backend
    8080bool MessageHandler::HandleOutbound(SocketHandler *sock, QStringList &slist)
    8181{
     82    Q_UNUSED(sock);
    8283    QStringList::const_iterator iter = slist.begin();
    8384    QString message = *(iter++);
    8485    QStringList extra_data( *(iter++) );
  • mythtv/libs/libmythprotoserver/socketrequesthandler.h

    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 
    1818
    1919    virtual bool HandleAnnounce(MythSocket *socket, QStringList &commands,
    2020                                QStringList &slist)
    21                     { return false; }
     21    {
     22        Q_UNUSED(socket);
     23        Q_UNUSED(commands);
     24        Q_UNUSED(slist);
     25        return false;
     26    }
    2227    virtual bool HandleQuery(SocketHandler *socket, QStringList &commands,
    2328                                QStringList &slist)
    24                     { return false; }
     29    {
     30        Q_UNUSED(socket);
     31        Q_UNUSED(commands);
     32        Q_UNUSED(slist);
     33        return false;
     34    }
    2535    virtual QString GetHandlerName(void)                { return "BASE"; }
    2636    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); }
    2944    virtual void SetParent(MythSocketManager *parent)   { m_parent = parent; }
    3045    MythSocketManager *GetParent(void)                  { return m_parent; }
    3146
  • mythtv/libs/libmythtv/AirPlay/mythraopconnection.cpp

    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) 
    247247void MythRAOPConnection::udpDataReady(QByteArray buf, QHostAddress peer,
    248248                                      quint16 port)
    249249{
     250    Q_UNUSED(peer);
     251    Q_UNUSED(port);
    250252    // restart the idle timer
    251253    if (m_watchdogTimer)
    252254        m_watchdogTimer->start(10000);
  • mythtv/libs/libmythtv/Bluray/avformatdecoderbd.cpp

    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) 
    9898
    9999int AvFormatDecoderBD::ReadPacket(AVFormatContext *ctx, AVPacket* pkt, bool& storePacket)
    100100{
     101    Q_UNUSED(storePacket);
    101102    QMutexLocker locker(avcodeclock);
    102103
    103104    int result = av_read_frame(ctx, pkt);
  • mythtv/libs/libmythtv/Bluray/bdringbuffer.cpp

    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) 
    528528
    529529bool BDRingBuffer::OpenFile(const QString &lfilename, uint retry_ms)
    530530{
     531    Q_UNUSED(retry_ms);
    531532    safefilename = lfilename;
    532533    filename = lfilename;
    533534
  • mythtv/libs/libmythtv/Bluray/mythbdplayer.h

    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 
    3939    // Non-const gets
    4040    // Disable screen grabs for Bluray
    4141    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    }
    4352    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    }
    4562
    4663  protected:
    4764    // Playback
    class MythBDPlayer : public MythPlayer 
    6077    // Non-const gets
    6178    // Disable screen grabs for Bluray
    6279    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    }
    6487
    6588  private:
    6689    void    DisplayMenu(void);
  • mythtv/libs/libmythtv/DVD/avformatdecoderdvd.cpp

    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) 
    8484bool AvFormatDecoderDVD::GetFrame(DecodeType decodetype)
    8585{
    8686    // Always try to decode audio and video for DVDs
     87    Q_UNUSED(decodetype);
    8788    return AvFormatDecoder::GetFrame( kDecodeAV );
    8889}
    8990
  • mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp

    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) 
    477477
    478478bool DVDRingBuffer::OpenFile(const QString &lfilename, uint retry_ms)
    479479{
     480    Q_UNUSED(retry_ms);
    480481    QMutexLocker contextLocker(&m_contextLock);
    481482    rwlock.lockForWrite();
    482483
  • mythtv/libs/libmythtv/DVD/mythdvdplayer.cpp

    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) 
    2727void MythDVDPlayer::ReleaseNextVideoFrame(VideoFrame *buffer,
    2828                                          int64_t timecode, bool wrap)
    2929{
     30    Q_UNUSED(wrap);
    3031    MythPlayer::ReleaseNextVideoFrame(buffer, timecode,
    3132                        !player_ctx->buffer->IsInDiscMenuOrStillFrame());
    3233}
    void MythDVDPlayer::DecoderPauseCheck(void) 
    8384
    8485bool MythDVDPlayer::PrebufferEnoughFrames(int min_buffers)
    8586{
     87    Q_UNUSED(min_buffers);
    8688    return MythPlayer::PrebufferEnoughFrames(1);
    8789}
    8890
    void MythDVDPlayer::InitialSeek(void) 
    312314
    313315void MythDVDPlayer::ResetPlaying(bool resetframes)
    314316{
     317    Q_UNUSED(resetframes);
    315318    MythPlayer::ResetPlaying(false);
    316319}
    317320
    void MythDVDPlayer::ChangeSpeed(void) 
    459462
    460463void MythDVDPlayer::AVSync(VideoFrame *frame, bool limit_delay)
    461464{
     465    Q_UNUSED(limit_delay);
    462466    MythPlayer::AVSync(frame, true);
    463467}
    464468
    int64_t MythDVDPlayer::GetTotalSeconds(bool /*honorCutList*/, int divisor) const 
    506510void MythDVDPlayer::SeekForScreenGrab(uint64_t &number, uint64_t frameNum,
    507511                                      bool absolute)
    508512{
     513    Q_UNUSED(absolute);
    509514    if (!player_ctx->buffer->IsDVD())
    510515        return;
    511516    if (GoToMenu("menu"))
  • mythtv/libs/libmythtv/HLS/httplivestream.cpp

    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) 
    666666
    667667QString HTTPLiveStream::StatusToString(HTTPLiveStreamStatus status)
    668668{
     669    Q_UNUSED(status);
    669670    switch (m_status) {
    670671        case kHLSStatusUndefined : return QString("Undefined");
    671672        case kHLSStatusQueued    : return QString("Queued");
  • mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp

    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) 
    20602060
    20612061int HLSRingBuffer::ParseProgramDateTime(HLSStream *hls, const QString &line) const
    20622062{
     2063    Q_UNUSED(hls);
    20632064    /*
    20642065     * #EXT-X-PROGRAM-DATE-TIME:<YYYY-MM-DDThh:mm:ssZ>
    20652066     */
    int HLSRingBuffer::ParseEndList(HLSStream *hls) const 
    21382139
    21392140int HLSRingBuffer::ParseDiscontinuity(HLSStream *hls, const QString &line) const
    21402141{
     2142    Q_UNUSED(hls);
    21412143    /* Not handled, never seen so far */
    21422144    LOG(VB_PLAYBACK, LOG_DEBUG, LOC + QString("#EXT-X-DISCONTINUITY %1").arg(line));
    21432145    return RET_OK;
    int HLSRingBuffer::Prefetch(int count) 
    23582360
    23592361void HLSRingBuffer::SanityCheck(const HLSStream *hls, const HLSSegment *segment) const
    23602362{
     2363    Q_UNUSED(segment);
    23612364    bool live = hls->Live();
    23622365    /* sanity check */
    23632366    if ((m_streamworker->CurrentPlaybackBuffer() == 0) &&
    void HLSRingBuffer::SanitizeStreams(StreamsList *streams) 
    25392542
    25402543bool HLSRingBuffer::OpenFile(const QString &lfilename, uint retry_ms)
    25412544{
     2545    Q_UNUSED(retry_ms);
    25422546    QWriteLocker lock(&rwlock);
    25432547
    25442548    safefilename = lfilename;
  • mythtv/libs/libmythtv/HLS/m3u.cpp

    diff --git a/mythtv/libs/libmythtv/HLS/m3u.cpp b/mythtv/libs/libmythtv/HLS/m3u.cpp
    index 801cebe..d96a580 100644
    a b namespace M3U 
    118118                                const QString& loc,
    119119                                int& id, uint64_t& bandwidth)
    120120    {
     121        Q_UNUSED(url);
    121122        /*
    122123         * #EXT-X-STREAM-INF:[attribute=value][,attribute=value]*
    123124         *  <URI>
    namespace M3U 
    357358    bool ParseProgramDateTime(const QString& line, const QString& loc,
    358359                              QDateTime &date)
    359360    {
     361        Q_UNUSED(date);
    360362        /*
    361363         * #EXT-X-PROGRAM-DATE-TIME:<YYYY-MM-DDThh:mm:ssZ>
    362364         */
  • mythtv/libs/libmythtv/avformatdecoder.cpp

    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) 
    14641464static enum AVPixelFormat get_format_vdpau(struct AVCodecContext *avctx,
    14651465                                           const enum AVPixelFormat *fmt)
    14661466{
     1467    Q_UNUSED(fmt);
    14671468    AvFormatDecoder *nd = (AvFormatDecoder *)(avctx->opaque);
    14681469    if (nd && nd->GetPlayer())
    14691470    {
    void release_avf_buffer(void *opaque, uint8_t *data) 
    28642865#ifdef USING_VDPAU
    28652866int get_avf_buffer_vdpau(struct AVCodecContext *c, AVFrame *pic, int flags)
    28662867{
     2868    Q_UNUSED(flags);
    28672869    AvFormatDecoder *nd = (AvFormatDecoder *)(c->opaque);
    28682870    VideoFrame *frame   = nd->GetPlayer()->GetNextVideoFrame();
    28692871
    int get_avf_buffer_dxva2(struct AVCodecContext *c, AVFrame *pic, int flags) 
    29632965#ifdef USING_VAAPI
    29642966int get_avf_buffer_vaapi(struct AVCodecContext *c, AVFrame *pic, int flags)
    29652967{
     2968    Q_UNUSED(flags);
    29662969    AvFormatDecoder *nd = (AvFormatDecoder *)(c->opaque);
    29672970    VideoFrame *frame = nd->GetPlayer()->GetNextVideoFrame();
    29682971
  • mythtv/libs/libmythtv/avformatdecoder.h

    diff --git a/mythtv/libs/libmythtv/avformatdecoder.h b/mythtv/libs/libmythtv/avformatdecoder.h
    index ae3df77..66759c9 100644
    a b class AvFormatDecoder : public DecoderBase 
    264264    virtual void DoFastForwardSeek(long long desiredFrame, bool &needflush);
    265265    virtual void StreamChangeCheck(void) { }
    266266    virtual void PostProcessTracks(void) { }
    267     virtual bool IsValidStream(int streamid) {return true;}
     267    virtual bool IsValidStream(int streamid) {Q_UNUSED(streamid); return true;}
    268268
    269269    int DecodeAudio(AVCodecContext *ctx, uint8_t *buffer, int &data_size,
    270270                    AVPacket *pkt);
  • mythtv/libs/libmythtv/avformatwriter.cpp

    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) 
    319319
    320320int AVFormatWriter::WriteAudioFrame(unsigned char *buf, int fnum, long long &timecode)
    321321{
     322    Q_UNUSED(fnum);
    322323#if HAVE_BIGENDIAN
    323324    bswap_16_buf((short int*) buf, m_audioFrameSize, m_audioChannels);
    324325#endif
    int AVFormatWriter::WriteAudioFrame(unsigned char *buf, int fnum, long long &tim 
    420421int AVFormatWriter::WriteTextFrame(int vbimode, unsigned char *buf, int len,
    421422                                   long long timecode, int pagenr)
    422423{
     424    Q_UNUSED(vbimode);
     425    Q_UNUSED(buf);
     426    Q_UNUSED(len);
     427    Q_UNUSED(timecode);
     428    Q_UNUSED(pagenr);
    423429    return 1;
    424430}
    425431
  • mythtv/libs/libmythtv/cardutil.cpp

    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) 
    507507QString CardUtil::ProbeDVBFrontendName(const QString &device)
    508508{
    509509    QString ret = "ERROR_UNKNOWN";
    510     (void) device;
     510    Q_UNUSED(device);
    511511
    512512#ifdef USING_DVB
    513513    QString dvbdev = CardUtil::GetDeviceName(DVB_DEV_FRONTEND, device);
    int CardUtil::CreateCardInput(const uint inputid, 
    11231123                              const uint schedorder,
    11241124                              const uint livetvorder)
    11251125{
     1126    Q_UNUSED(hostname);
    11261127    MSqlQuery query(MSqlQuery::InitCon());
    11271128
    11281129    query.prepare(
    uint CardUtil::GetQuickTuning(uint inputid, const QString &input_name) 
    15071508
    15081509bool CardUtil::hasV4L2(int videofd)
    15091510{
    1510     (void) videofd;
     1511    Q_UNUSED(videofd);
    15111512#ifdef USING_V4L2
    15121513    struct v4l2_capability vcap;
    15131514    memset(&vcap, 0, sizeof(vcap));
    bool CardUtil::GetV4LInfo( 
    15591560
    15601561InputNames CardUtil::ProbeV4LVideoInputs(int videofd, bool &ok)
    15611562{
    1562     (void) videofd;
     1563    Q_UNUSED(videofd);
    15631564
    15641565    InputNames list;
    15651566    ok = false;
    InputNames CardUtil::ProbeV4LVideoInputs(int videofd, bool &ok) 
    16261627
    16271628InputNames CardUtil::ProbeV4LAudioInputs(int videofd, bool &ok)
    16281629{
    1629     (void) videofd;
     1630    Q_UNUSED(videofd);
    16301631
    16311632    InputNames list;
    16321633    ok = false;
    QStringList CardUtil::ProbeDVBInputs(QString device) 
    17851786            ret += *it;
    17861787    }
    17871788#else
    1788     (void) device;
     1789    Q_UNUSED(device);
    17891790    ret += QObject::tr("ERROR, Compile with DVB support to query inputs");
    17901791#endif
    17911792
    void CardUtil::GetDeviceInputNames( 
    18211822    const QString      &inputtype,
    18221823    QStringList        &inputs)
    18231824{
     1825    Q_UNUSED(inputid);
    18241826    inputs.clear();
    18251827    if (IsSingleInputType(inputtype))
    18261828        inputs += "MPEG2TS";
    QString CardUtil::GetDeviceName(dvb_dev_type_t type, const QString &device) 
    21052107
    21062108bool CardUtil::HDHRdoesDVB(const QString &device)
    21072109{
    2108     (void) device;
     2110    Q_UNUSED(device);
    21092111
    21102112#ifdef USING_HDHOMERUN
    21112113    hdhomerun_device_t  *hdhr;
    QString CardUtil::GetHDHRdesc(const QString &device) 
    21492151        if (!validID || !hdhomerun_discover_validate_device_id(dev))
    21502152            return QObject::tr("Invalid Device ID");
    21512153    }
    2152     (void) deviceIsIP;
     2154    Q_UNUSED(deviceIsIP);
    21532155
    21542156    LOG(VB_GENERAL, LOG_INFO, "CardUtil::GetHDHRdescription(" + device +
    21552157                              ") - trying to locate device");
    QString CardUtil::GetHDHRdesc(const QString &device) 
    21792181    return description;
    21802182#else
    21812183
    2182     (void) device;
     2184    Q_UNUSED(device);
    21832185    return connectErr;
    21842186#endif
    21852187}
    QString CardUtil::GetVBoxdesc(const QString &id, const QString &ip, 
    22192221                   .arg(ip).arg(tunerNo).arg(tunerType);
    22202222
    22212223#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);
    22262228
    22272229    return connectErr;
    22282230#endif
    int CardUtil::GetASIDeviceNumber(const QString &device, QString *error) 
    23102312
    23112313    return device_num;
    23122314#else
    2313     (void) device;
     2315    Q_UNUSED(device);
    23142316    if (error)
    23152317        *error = "Not compiled with ASI support.";
    23162318    return -1;
    uint CardUtil::GetASIBufferSize(uint device_num, QString *error) 
    23352337    }
    23362338    return buf_size;
    23372339#else
    2338     (void) device_num;
     2340    Q_UNUSED(device_num);
    23392341    if (error)
    23402342        *error = "Not compiled with ASI support.";
    23412343    return 0;
    uint CardUtil::GetASINumBuffers(uint device_num, QString *error) 
    23602362    }
    23612363    return num_buffers;
    23622364#else
    2363     (void) device_num;
     2365    Q_UNUSED(device_num);
    23642366    if (error)
    23652367        *error = "Not compiled with ASI support.";
    23662368    return 0;
    int CardUtil::GetASIMode(uint device_num, QString *error) 
    23842386    }
    23852387    return mode;
    23862388#else
    2387     (void) device_num;
     2389    Q_UNUSED(device_num);
    23882390    if (error)
    23892391        *error = "Not compiled with ASI support.";
    23902392    return -1;
    bool CardUtil::SetASIMode(uint device_num, uint mode, QString *error) 
    24072409    }
    24082410    return ok;
    24092411#else
    2410     (void) device_num;
     2412    Q_UNUSED(mode);
     2413    Q_UNUSED(device_num);
    24112414    if (error)
    24122415        *error = "Not compiled with ASI support.";
    24132416    return false;
  • mythtv/libs/libmythtv/channelgroupsettings.cpp

    diff --git a/mythtv/libs/libmythtv/channelgroupsettings.cpp b/mythtv/libs/libmythtv/channelgroupsettings.cpp
    index 5bbd792..16edeff 100644
    a b void ChannelGroupStorage::Save(void) 
    7373
    7474void ChannelGroupStorage::Save(QString destination)
    7575{
     76    Q_UNUSED(destination);
    7677    Save();
    7778}
    7879
    class ChannelCheckBox : public CheckBoxSetting, public ChannelGroupStorage 
    8687        CheckBoxSetting(this),
    8788        ChannelGroupStorage(this, chanid, grpname)
    8889    {
     90        Q_UNUSED(_parent);
    8991        //: %1 is the channel number, %2 is the channel name
    9092        setLabel(tr("%1 %2", "Channel number with channel name")
    9193                 .arg(channum).arg(channame));
  • mythtv/libs/libmythtv/channelscan/channelimporter.cpp

    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( 
    10871087    const ScanDTVTransport          &transport,
    10881088    const ChannelInsertInfo         &chan)
    10891089{
     1090    Q_UNUSED(transport);
    10901091    QString msg;
    10911092    QTextStream ssMsg(&msg);
    10921093
    QString ChannelImporter::ComputeSuggestedChannelNum( 
    12551256    const ScanDTVTransport          &transport,
    12561257    const ChannelInsertInfo         &chan)
    12571258{
     1259    Q_UNUSED(info);
     1260    Q_UNUSED(transport);
    12581261    static QMutex          last_free_lock;
    12591262    static QMap<uint,uint> last_free_chan_num_map;
    12601263
  • mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp

    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) 
    422422
    423423void ChannelScanSM::HandleSDT(uint tsid, const ServiceDescriptionTable *sdt)
    424424{
     425    Q_UNUSED(tsid);
    425426    QMutexLocker locker(&m_lock);
    426427
    427428    LOG(VB_CHANSCAN, LOG_INFO, LOC +
  • mythtv/libs/libmythtv/channelscan/channelscanner_cli.cpp

    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) 
    152152void ChannelScannerCLI::MonitorProgress(
    153153    bool lock, bool strength, bool snr, bool rotor)
    154154{
     155    Q_UNUSED(lock);
     156    Q_UNUSED(strength);
     157    Q_UNUSED(snr);
     158    Q_UNUSED(rotor);
    155159    if (VERBOSE_LEVEL_NONE)
    156160        cout<<"\r0%"<<flush;
    157161}
  • mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp

    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) 
    235235QString IPTVChannelFetcher::DownloadPlaylist(const QString &url,
    236236                                             bool inQtThread)
    237237{
     238    Q_UNUSED(inQtThread);
    238239    if (url.startsWith("file", Qt::CaseInsensitive))
    239240    {
    240241        QString ret = "";
  • mythtv/libs/libmythtv/channelscan/paneatsc.h

    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 
    9292
    9393    void ModulationChanged(const QString &modulation)
    9494    {
     95        Q_UNUSED(modulation);
    9596        ResetTransportRange();
    9697    }
    9798
  • mythtv/libs/libmythtv/datadirect.cpp

    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) 
    21542154static void get_atsc_stuff(QString channum, int sourceid, int freqid,
    21552155                           int &major, int &minor, long long &freq)
    21562156{
     2157    Q_UNUSED(sourceid);
    21572158    major = freqid;
    21582159    minor = 0;
    21592160
  • mythtv/libs/libmythtv/decoderbase.h

    diff --git a/mythtv/libs/libmythtv/decoderbase.h b/mythtv/libs/libmythtv/decoderbase.h
    index 9b8051f..1c9ca81 100644
    a b class DecoderBase 
    149149
    150150    virtual void SetLowBuffers(bool low) { lowbuffers = low; }
    151151    /// Disables AC3/DTS pass through
    152     virtual void SetDisablePassThrough(bool disable) { (void)disable; }
     152    virtual void SetDisablePassThrough(bool disable) { Q_UNUSED(disable); }
    153153    // Reconfigure audio as necessary, following configuration change
    154154    virtual void ForceSetupAudioStream(void) { }
    155155
    class DecoderBase 
    159159    MythPlayer *GetPlayer() { return m_parent; }
    160160
    161161    virtual int GetNumChapters(void)                      { return 0; }
    162     virtual int GetCurrentChapter(long long framesPlayed) { return 0; }
    163     virtual void GetChapterTimes(QList<long long> &times) { 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> &times)
     165        { Q_UNUSED(times); return; }
     166    virtual long long GetChapter(int chapter)
     167        { Q_UNUSED(chapter); return framesPlayed; }
    165168    virtual bool DoRewind(long long desiredFrame, bool doflush = true);
    166169    virtual bool DoFastForward(long long desiredFrame, bool doflush = true);
    167     virtual void SetIdrOnlyKeyframes(bool value) { }
     170    virtual void SetIdrOnlyKeyframes(bool value) { Q_UNUSED(value); }
    168171
    169172    static uint64_t
    170173        TranslatePositionAbsToRel(const frm_dir_map_t &deleteMap,
    class DecoderBase 
    257260    virtual int  GetTeletextDecoderType(void) const { return -1; }
    258261
    259262    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(); }
    261265    virtual void GetAttachmentData(uint trackNo, QByteArray &filename,
    262                                    QByteArray &data) {}
     266                                   QByteArray &data)
     267        { Q_UNUSED(trackNo); Q_UNUSED(filename); Q_UNUSED(data);}
    263268
    264269    // MHEG/MHI stuff
    265270    virtual bool SetAudioByComponentTag(int) { return false; }
  • mythtv/libs/libmythtv/diseqc.cpp

    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, 
    22942294uint DiSEqCDevSCR::GetVoltage(const DiSEqCDevSettings &settings,
    22952295                              const DTVMultiplex      &tuning) const
    22962296{
     2297    Q_UNUSED(settings);
     2298    Q_UNUSED(tuning);
    22972299    return SEC_VOLTAGE_13;
    22982300}
    22992301
  • mythtv/libs/libmythtv/fileringbuffer.cpp

    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 
    447447 */
    448448int FileRingBuffer::safe_read(int fd, void *data, uint sz)
    449449{
     450    Q_UNUSED(fd);
    450451    int ret;
    451452    unsigned tot = 0;
    452453    unsigned errcnt = 0;
  • mythtv/libs/libmythtv/filewriterbase.cpp

    diff --git a/mythtv/libs/libmythtv/filewriterbase.cpp b/mythtv/libs/libmythtv/filewriterbase.cpp
    index 650215d..e16df85 100644
    a b FileWriterBase::~FileWriterBase() 
    4242
    4343int FileWriterBase::WriteVideoFrame(VideoFrame *frame)
    4444{
     45    Q_UNUSED(frame);
    4546    LOG(VB_RECORD, LOG_ERR, LOC + "WriteVideoFrame(): Shouldn't be here!");
    4647
    4748    return 1;
    int FileWriterBase::WriteVideoFrame(VideoFrame *frame) 
    4950
    5051int FileWriterBase::WriteAudioFrame(unsigned char *buf, int fnum, long long &timecode)
    5152{
     53    Q_UNUSED(buf);
     54    Q_UNUSED(fnum);
     55    Q_UNUSED(timecode);
    5256    LOG(VB_RECORD, LOG_ERR, LOC + "WriteAudioFrame(): Shouldn't be here!");
    5357
    5458    return 1;
  • mythtv/libs/libmythtv/filewriterbase.h

    diff --git a/mythtv/libs/libmythtv/filewriterbase.h b/mythtv/libs/libmythtv/filewriterbase.h
    index 15eb623..8ce6bd9 100644
    a b class MTV_PUBLIC FileWriterBase 
    1919    virtual int  WriteVideoFrame(VideoFrame *frame);
    2020    virtual int  WriteAudioFrame(unsigned char *buf, int fnum, long long &timecode);
    2121    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    }
    2331    virtual int  WriteSeekTable(void) { return 1; }
    2432
    2533    virtual bool SwitchToNextFile(void) { return false; }
  • mythtv/libs/libmythtv/icringbuffer.cpp

    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 
    3737
    3838bool ICRingBuffer::OpenFile(const QString &url, uint retry_ms)
    3939{
     40    Q_UNUSED(retry_ms);
    4041    if (!NetStream::IsSupported(url))
    4142    {
    4243        LOG(VB_GENERAL, LOG_ERR, LOC + QString("Unsupported URL %1").arg(url) );
  • mythtv/libs/libmythtv/mhi.cpp

    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) 
    16871687void MHIDLA::DrawOval(int x, int y, int width, int height)
    16881688{
    16891689    // Not implemented.  Not actually used in practice.
     1690    Q_UNUSED(x);
     1691    Q_UNUSED(y);
     1692    Q_UNUSED(width);
     1693    Q_UNUSED(height);
    16901694}
    16911695
    16921696// Arcs and sectors
    void MHIDLA::DrawArcSector(int x, int y, int width, int height, 
    16941698                           int start, int arc, bool isSector)
    16951699{
    16961700    // 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);
    16971708}
    16981709
    16991710// Polygons.  This is used directly and also to draw other figures.
  • mythtv/libs/libmythtv/mpeg/atsctables.h

    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 
    803803    QString toString(void) const
    804804        { return "AggregateEventInformationTable\n"; }
    805805    QString toStringXML(uint indent_level) const
    806         { return "<AggregateEventInformationTable />"; }
     806        {
     807            Q_UNUSED(indent_level);
     808            return "<AggregateEventInformationTable />";
     809        }
    807810};
    808811
    809812/// SCTE 65 & ATSC/81 0xD7
    class MTV_PUBLIC AggregateExtendedTextTable : public PSIPTable 
    823826    QString toString(void) const
    824827        { return "AggregateExtendedTextTable\n"; }
    825828    QString toStringXML(uint indent_level) const
    826         { return "<AggregateExtendedTextTable />"; }
     829        {
     830            Q_UNUSED(indent_level);
     831            return "<AggregateExtendedTextTable />";
     832        }
    827833};
    828834
    829835#endif // _ATSC_TABLES_H_
  • mythtv/libs/libmythtv/mpeg/dvbstreamdata.cpp

    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 
    831831
    832832bool DVBStreamData::HasCachedAnySDTs(bool current) const
    833833{
     834    Q_UNUSED(current);
    834835    QMutexLocker locker(&_cache_lock);
    835836    return !_cached_sdts.empty();
    836837}
  • mythtv/libs/libmythtv/mpeg/mpegtables.cpp

    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( 
    12601260    const QString &codeWord) const
    12611261{
    12621262    // TODO
     1263    Q_UNUSED(codeWord);
    12631264    return NULL;
    12641265}
    12651266
  • mythtv/libs/libmythtv/mpeg/mpegtables.h

    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 
    11311131    // descriptor_loop_length  16   0.0 + _epilog
    11321132    uint SpliceDescriptorsLength(uint i) const
    11331133    {
     1134        Q_UNUSED(i);
    11341135        return (_epilog[0] << 8) | _epilog[1];
    11351136    }
    11361137
  • mythtv/libs/libmythtv/mpeg/sctetables.cpp

    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 
    576576QString AggregateDataEventTable::toStringXML(uint indent_level) const
    577577{
    578578    // TODO
     579    Q_UNUSED(indent_level);
    579580    return "<AggregateDataEventSection />";
    580581}
  • mythtv/libs/libmythtv/mpeg/sctetables.h

    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 
    626626    QString toString(void) const
    627627        { return "Program Information Message\n"; }
    628628    QString toStringXML(uint indent_level) const
    629         { return "<ProgramInformationMessage />"; }
     629        {
     630            Q_UNUSED(indent_level);
     631            return "<ProgramInformationMessage />";
     632        }
    630633};
    631634
    632635// PNM = 0xC1 -- Program Name Message (57 2003) PMT PID
    class MTV_PUBLIC ProgramNameMessageTable : public PSIPTable 
    646649    QString toString(void) const
    647650        { return "Program Name Message\n"; }
    648651    QString toStringXML(uint indent_level) const
    649         { return "<ProgramNameMessage />"; }
     652        {
     653            Q_UNUSED(indent_level);
     654            return "<ProgramNameMessage />";
     655        }
    650656};
    651657
    652658// ADET = 0xD9 -- Aggregate Data Event Table (80 2002)
  • mythtv/libs/libmythtv/mythplayer.cpp

    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) 
    35393539
    35403540bool MythPlayer::AddPIPPlayer(MythPlayer *pip, PIPLocation loc, uint timeout)
    35413541{
     3542    Q_UNUSED(timeout);
    35423543    if (!is_current_thread(playerThread))
    35433544    {
    35443545        LOG(VB_GENERAL, LOG_ERR, LOC + "Cannot add PiP from another thread");
    bool MythPlayer::AddPIPPlayer(MythPlayer *pip, PIPLocation loc, uint timeout) 
    35643565
    35653566bool MythPlayer::RemovePIPPlayer(MythPlayer *pip, uint timeout)
    35663567{
     3568    Q_UNUSED(timeout);
    35673569    if (!is_current_thread(playerThread))
    35683570        return false;
    35693571
    bool MythPlayer::TranscodeGetNextFrame( 
    47954797    frm_dir_map_t::iterator &dm_iter,
    47964798    int &did_ff, bool &is_key, bool honorCutList)
    47974799{
     4800    Q_UNUSED(dm_iter);
    47984801    player_ctx->LockPlayingInfo(__FILE__, __LINE__);
    47994802    if (player_ctx->playingInfo)
    48004803        player_ctx->playingInfo->UpdateInUseMark();
  • mythtv/libs/libmythtv/mythplayer.h

    diff --git a/mythtv/libs/libmythtv/mythplayer.h b/mythtv/libs/libmythtv/mythplayer.h
    index 3123a95..134f069 100644
    a b class MTV_PUBLIC MythPlayer 
    241241    InteractiveTV *GetInteractiveTV(void);
    242242
    243243    // Title stuff
    244     virtual bool SwitchTitle(int title) { return false; }
     244    virtual bool SwitchTitle(int title) { Q_UNUSED(title); return false; }
    245245    virtual bool NextTitle(void) { return false; }
    246246    virtual bool PrevTitle(void) { return false; }
    247247
    248248    // Angle stuff
    249     virtual bool SwitchAngle(int title) { return false; }
     249    virtual bool SwitchAngle(int title) { Q_UNUSED(title); return false; }
    250250    virtual bool NextAngle(void) { return false; }
    251251    virtual bool PrevAngle(void) { return false; }
    252252
    class MTV_PUBLIC MythPlayer 
    289289
    290290    // Public Closed caption and teletext stuff
    291291    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; }
    296296
    297297    // Public Audio/Subtitle/EIA-608/EIA-708 stream selection - thread safe
    298298    void TracksChanged(uint trackType);
    class MTV_PUBLIC MythPlayer 
    329329    // Title public stuff
    330330    virtual int GetNumTitles(void) const { return 0; }
    331331    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(); }
    334334
    335335    // Angle public stuff
    336336    virtual int GetNumAngles(void) const { return 0; }
    337337    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(); }
    339339
    340340    // DVD public stuff
    341     virtual bool GoToMenu(QString str)          { return false;    }
     341    virtual bool GoToMenu(QString str)          { Q_UNUSED(str); return false; }
    342342    virtual void GoToDVDProgram(bool direction) { (void) direction; }
    343343    virtual bool IsInStillFrame() const         { return false;     }
    344344
  • mythtv/libs/libmythtv/nuppeldecoder.cpp

    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) 
    641641
    642642int get_nuppel_buffer(struct AVCodecContext *c, AVFrame *pic, int flags)
    643643{
     644    Q_UNUSED(flags);
    644645    NuppelDecoder *nd = (NuppelDecoder *)(c->opaque);
    645646
    646647    int i;
  • mythtv/libs/libmythtv/playercontext.cpp

    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) 
    269269
    270270bool PlayerContext::StartEmbedding(WId wid, const QRect &embedRect)
    271271{
     272    Q_UNUSED(wid);
    272273    bool ret = false;
    273274    LockDeletePlayer(__FILE__, __LINE__);
    274275    if (player)
    bool PlayerContext::HandlePlayerSpeedChangeEOF(void) 
    357358bool PlayerContext::CalcPlayerSliderPosition(osdInfo &info,
    358359                                             bool paddedFields) const
    359360{
     361    Q_UNUSED(paddedFields);
    360362    QMutexLocker locker(&deletePlayerLock);
    361363    if (player)
    362364    {
    void PlayerContext::LockPlayingInfo(const char *file, int line) const 
    586588    LOG(VB_GENERAL, LOG_DEBUG, QString("LockPlayingInfo(%1,%2)")
    587589            .arg(file).arg(line));
    588590#endif
     591    Q_UNUSED(file);
     592    Q_UNUSED(line);
    589593    playingInfoLock.lock();
    590594}
    591595
    void PlayerContext::UnlockPlayingInfo(const char *file, int line) const 
    595599    LOG(VB_GENERAL, LOG_DEBUG, QString("UnlockPlayingInfo(%1,%2)")
    596600            .arg(file).arg(line));
    597601#endif
     602    Q_UNUSED(file);
     603    Q_UNUSED(line);
    598604    playingInfoLock.unlock();
    599605}
    600606
    void PlayerContext::LockDeletePlayer(const char *file, int line) const 
    609615    LOG(VB_GENERAL, LOG_DEBUG, QString("LockDeletePlayer(%1,%2)")
    610616            .arg(file).arg(line));
    611617#endif
     618    Q_UNUSED(file);
     619    Q_UNUSED(line);
    612620    deletePlayerLock.lock();
    613621}
    614622
    void PlayerContext::UnlockDeletePlayer(const char *file, int line) const 
    621629    LOG(VB_GENERAL, LOG_DEBUG, QString("UnlockDeletePlayer(%1,%2)")
    622630            .arg(file).arg(line));
    623631#endif
     632    Q_UNUSED(file);
     633    Q_UNUSED(line);
    624634    deletePlayerLock.unlock();
    625635}
    626636
  • mythtv/libs/libmythtv/privatedecoder.cpp

    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) 
    2525#ifdef USING_CRYSTALHD
    2626    PrivateDecoderCrystalHD::GetDecoders(opts);
    2727#endif
     28
     29#if !(defined(Q_OS_MACX) || USING_OPENMAX || USING_CRYSTALHD)
     30    Q_UNUSED(opts);
     31#endif
    2832}
    2933
    3034PrivateDecoder* PrivateDecoder::Create(const QString &decoder,
    PrivateDecoder* PrivateDecoder::Create(const QString &decoder, 
    5256    delete chd;
    5357#endif
    5458
     59#if !(defined(Q_OS_MACX) || USING_OPENMAX || USING_CRYSTALHD)
     60    Q_UNUSED(decoder);
     61    Q_UNUSED(flags);
     62    Q_UNUSED(avctx);
     63#endif
    5564    return NULL;
    5665}
  • mythtv/libs/libmythtv/recorders/ExternalStreamHandler.cpp

    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) 
    210210
    211211void ExternIO::Term(bool force)
    212212{
     213    Q_UNUSED(force);
    213214    LOG(VB_RECORD, LOG_INFO, QString("ExternIO::Term()"));
    214215}
    215216
    void ExternalStreamHandler::PurgeBuffer(void) 
    11231124void ExternalStreamHandler::PriorityEvent(int fd)
    11241125{
    11251126    // TODO report on buffer overruns, etc.
     1127    Q_UNUSED(fd);
    11261128}
  • mythtv/libs/libmythtv/recorders/channelbase.h

    diff --git a/mythtv/libs/libmythtv/recorders/channelbase.h b/mythtv/libs/libmythtv/recorders/channelbase.h
    index 5db7f55..4995891 100644
    a b class ChannelBase 
    5555    virtual void SetFd(int fd) { (void)fd; };
    5656    /// \brief Returns file descriptor, -1 if it does not exist.
    5757    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; }
    5960    virtual bool IsExternalChannelChangeInUse(void);
    6061
    6162    // Gets
    class ChannelBase 
    9394    virtual bool InitPictureAttributes(void) { return false; }
    9495    virtual int  GetPictureAttribute(PictureAttribute) const { return -1; }
    9596    virtual int  ChangePictureAttribute(
    96         PictureAdjustType, PictureAttribute, bool up) { return -1; }
     97        PictureAdjustType, PictureAttribute, bool up) { Q_UNUSED(up); return -1; }
    9798
    9899    bool CheckChannel(const QString &channum) const;
    99100
  • mythtv/libs/libmythtv/recorders/dtvchannel.cpp

    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) 
    396396
    397397    // We do not want to call ChannelBase::HandleScript() as it
    398398    // will save the current channel to (*it)->startChanNum
     399    Q_UNUSED(ok);
    399400}
    400401
    401402bool DTVChannel::TuneMultiplex(uint mplexid, QString inputname)
    402403{
     404    Q_UNUSED(inputname);
    403405    DTVMultiplex tuning;
    404406    if (!tuning.FillFromDB(tunerType, mplexid))
    405407        return false;
  • mythtv/libs/libmythtv/recorders/dtvchannel.h

    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 
    5252    /// will need to implement this when adding support for new hardware.
    5353    virtual bool Tune(const DTVMultiplex &tuning) = 0;
    5454    /// \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; }
    5657    /// \brief Leave it up to the implementation to map the channnum
    5758    /// appropriately.
    5859    ///
    5960    /// 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; }
    6163    /// \brief Enters power saving mode if the card supports it
    6264    virtual bool EnterPowerSavingMode(void)
    6365    {
    class DTVChannel : public ChannelBase 
    150152                    uint mpeg_tsid, int mpeg_pnum);
    151153    void ClearDTVInfo(void) { SetDTVInfo(0, 0, 0, 0, -1); }
    152154    /// \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); }
    154157    virtual void HandleScriptEnd(bool ok);
    155158
    156159  protected:
  • mythtv/libs/libmythtv/recorders/dtvrecorder.cpp

    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*) 
    787787/// write just 1 key-frame at the start.
    788788bool DTVRecorder::FindOtherKeyframes(const TSPacket *tspacket)
    789789{
     790    Q_UNUSED(tspacket);
    790791    if (!ringBuffer || (GetStreamData()->VideoPIDSingleProgram() <= 0x1fff))
    791792        return true;
    792793
  • mythtv/libs/libmythtv/recorders/dummychannel.h

    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 
    2121    ~DummyChannel(void) { return; }
    2222
    2323    bool IsTunable(const QString &channum) const
    24         { return true; }
     24        { Q_UNUSED(channum); return true; }
    2525
    2626    bool Open(void)     { return InitializeInput(); }
    2727    void Close(void)    { return; }
  • mythtv/libs/libmythtv/recorders/hdhrstreamhandler.h

    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 
    5353                             bool needs_drb            = false,
    5454                             QString output_file       = QString())
    5555    {
     56        Q_UNUSED(allow_section_reader);
     57        Q_UNUSED(needs_drb);
    5658        StreamHandler::AddListener(data, false, false, output_file);
    5759    } // StreamHandler
    5860
  • mythtv/libs/libmythtv/recorders/iptvstreamhandler.h

    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 
    8787                             bool needs_drb            = false,
    8888                             QString output_file       = QString())
    8989    {
     90        Q_UNUSED(allow_section_reader);
     91        Q_UNUSED(needs_drb);
    9092        StreamHandler::AddListener(data, false, false, output_file);
    9193    } // StreamHandler
    9294
  • mythtv/libs/libmythtv/recorders/mpegrecorder.h

    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, 
    4444    bool ProcessTSPacket(const TSPacket &tspacket);
    4545
    4646    // 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); }
    4949
    5050  private:
    5151    virtual void InitStreamData(void);
  • mythtv/libs/libmythtv/recorders/recorderbase.cpp

    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( 
    833833    const GeneralDBOptions &genOpt,
    834834    const DVBDBOptions     &dvbOpt)
    835835{
     836    Q_UNUSED(dvbOpt);
    836837    if (!channel)
    837838        return NULL;
    838839
  • mythtv/libs/libmythtv/recorders/streamhandler.h

    diff --git a/mythtv/libs/libmythtv/recorders/streamhandler.h b/mythtv/libs/libmythtv/recorders/streamhandler.h
    index eb4d2ed..e70bf1a 100644
    a b class PIDInfo 
    3333    virtual ~PIDInfo() {;}
    3434
    3535    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; }
    3838    bool IsOpen(void) const { return filter_fd >= 0; }
    3939
    4040    uint        _pid;
  • mythtv/libs/libmythtv/recorders/v4lrecorder.h

    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 
    3939    void RunVBIDevice(void);
    4040
    4141    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); }
    4444
    4545  protected:
    4646    QString          audiodevice;
  • mythtv/libs/libmythtv/recordingquality.cpp

    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, 
    1717                 : m_continuity_error_count(0), m_packet_count(0),
    1818                   m_overall_score(1.0)
    1919{
     20    Q_UNUSED(rg);
    2021    if (!ri)
    2122        return;
    2223
  • mythtv/libs/libmythtv/ringbuffer.cpp

    diff --git a/mythtv/libs/libmythtv/ringbuffer.cpp b/mythtv/libs/libmythtv/ringbuffer.cpp
    index 9316267..f6b588a 100644
    a b void RingBuffer::CalcReadAheadThresh(void) 
    469469
    470470bool RingBuffer::IsNearEnd(double fps, uint vvf) const
    471471{
     472    Q_UNUSED(fps);
    472473    QReadLocker lock(&rwlock);
    473474
    474475    if (!ateof && !setswitchtonext)
  • mythtv/libs/libmythtv/ringbuffer.h

    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 
    109109    DVDRingBuffer *DVD(void);
    110110    BDRingBuffer  *BD(void);
    111111    virtual bool StartFromBeginning(void)                   { return true;  }
    112     virtual void IgnoreWaitStates(bool ignore)              { }
     112    virtual void IgnoreWaitStates(bool ignore)              { Q_UNUSED(ignore); }
    113113    virtual bool IsInMenu(void) const                       { return false; }
    114114    virtual bool IsInStillFrame(void) const                 { return false; }
    115115    virtual bool IsInDiscMenuOrStillFrame(void) const       { return IsInMenu() || IsInStillFrame(); }
    class MTV_PUBLIC RingBuffer : protected MThread 
    125125     */
    126126    virtual bool OpenFile(const QString &lfilename,
    127127                          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; }
    129130
    130131    int  Read(void *buf, int count);
    131132    int  Peek(void *buf, int count); // only works with readahead
  • mythtv/libs/libmythtv/streamingringbuffer.cpp

    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 
    4040
    4141bool StreamingRingBuffer::OpenFile(const QString &lfilename, uint retry_ms)
    4242{
     43    Q_UNUSED(retry_ms);
    4344    avcodeclock->lock();
    4445    av_register_all();
    4546    avcodeclock->unlock();
  • mythtv/libs/libmythtv/subtitlescreen.cpp

    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) 
    23402340#ifdef USING_LIBASS
    23412341static void myth_libass_log(int level, const char *fmt, va_list vl, void *ctx)
    23422342{
     2343    Q_UNUSED(ctx);
    23432344    static QString full_line("libass:");
    23442345    static const int msg_len = 255;
    23452346    static QMutex string_lock;
  • mythtv/libs/libmythtv/tv_play.cpp

    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) 
    73977397{
    73987398    // TOGGLEFAV was broken in [20523], this just prints something
    73997399    // out so as not to cause further confusion. See #8948.
     7400    Q_UNUSED(ctx);
    74007401    LOG(VB_GENERAL, LOG_ERR,
    74017402        "TV::ToggleChannelFavorite() -- currently disabled");
    74027403}
    QSet<uint> TV::IsTunableOn( 
    85228523QSet<uint> TV::IsTunableOn(TV *tv,
    85238524    const PlayerContext *ctx, uint chanid)
    85248525{
     8526    Q_UNUSED(tv);
    85258527    QSet<uint> tunable_cards;
    85268528
    85278529    if (!chanid)
    void TV::DoEditSchedule(int editType) 
    88378839void TV::EditSchedule(const PlayerContext *ctx, int editType)
    88388840{
    88398841    // post the request so the guide will be created in the UI thread
     8842    Q_UNUSED(ctx);
    88408843    QString message = QString("START_EPG %1").arg(editType);
    88418844    MythEvent* me = new MythEvent(message);
    88428845    qApp->postEvent(this, me);
    bool MenuBase::LoadStringHelper(const QString &text, 
    1117011173                                const QString &keyBindingContext,
    1117111174                                int includeLevel)
    1117211175{
     11176    Q_UNUSED(translationContext);
     11177    Q_UNUSED(keyBindingContext);
    1117311178    bool result = false;
    1117411179    m_document = new QDomDocument();
    1117511180    if (m_document->setContent(text))
    void TV::PlaybackMenuInit(const MenuBase &menu) 
    1236512370
    1236612371void TV::PlaybackMenuDeinit(const MenuBase &menu)
    1236712372{
     12373    Q_UNUSED(menu);
    1236812374    ReturnOSDLock(m_tvmCtx, m_tvmOsd);
    1236912375    ReturnPlayerLock(m_tvmCtx);
    1237012376    m_tvmOsd = NULL;
    void TV::MenuStrings(void) const 
    1245512461
    1245612462void TV::ShowOSDMenu(const PlayerContext *ctx, bool isCompact)
    1245712463{
     12464    Q_UNUSED(ctx);
    1245812465    if (!m_playbackMenu.IsLoaded())
    1245912466    {
    1246012467        m_playbackMenu.LoadFromFile("menu_playback.xml",
  • mythtv/libs/libmythtv/tv_rec.cpp

    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) 
    12621262
    12631263static int eit_start_rand(uint inputid, int eitTransportTimeout)
    12641264{
     1265    Q_UNUSED(inputid);
    12651266    // randomize start time a bit
    12661267    int timeout = random() % (eitTransportTimeout / 3);
    12671268    // get the number of inputs and the position of the current input
    uint TVRec::GetSourceID(void) const 
    30373038 */
    30383039QString TVRec::SetInput(QString input, uint requestType)
    30393040{
     3041    Q_UNUSED(requestType);
    30403042    QMutexLocker lock(&stateChangeLock);
    30413043    QString origIn = input;
    30423044    LOG(VB_RECORD, LOG_INFO, LOC + "SetInput(" + input + ") -- begin");
    bool TVRec::GetProgramRingBufferForLiveTV(RecordingInfo **pginfo, 
    45394541                                          const QString & channum,
    45404542                                          int inputID)
    45414543{
     4544    Q_UNUSED(inputID);
    45424545    LOG(VB_RECORD, LOG_INFO, LOC + "GetProgramRingBufferForLiveTV()");
    45434546    if (!channel || !tvchain || !pginfo || !rb)
    45444547        return false;
  • mythtv/libs/libmythtv/v4l2util.cpp

    diff --git a/mythtv/libs/libmythtv/v4l2util.cpp b/mythtv/libs/libmythtv/v4l2util.cpp
    index bf73e22..18392d1 100644
    a b bool V4L2util::ResumeEncoding(void) 
    12271227
    12281228bool V4L2util::OpenVBI(const QString& vbi_dev_name)
    12291229{
     1230    Q_UNUSED(vbi_dev_name);
    12301231    return false;
    12311232}
    12321233
  • mythtv/libs/libmythtv/videoout_null.h

    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 
    4040                                           const QSize &video_dim);
    4141    void MoveResizeWindow(QRect ) {;}
    4242    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; }
    4445
    4546  private:
    4647    QMutex     global_lock;
  • mythtv/libs/libmythtv/videoout_nullvaapi.cpp

    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, 
    148148                                        void *codec_private,
    149149                                        bool &aspect_only)
    150150{
     151    Q_UNUSED(codec_private);
    151152    LOG(VB_PLAYBACK, LOG_INFO, LOC +
    152153        QString("InputChanged(%1,%2,%3) '%4'->'%5'")
    153154            .arg(video_dim_disp.width()).arg(video_dim_disp.height())
  • mythtv/libs/libmythtv/videoout_nullvaapi.h

    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 
    2525                              void        *codec_private,
    2626                              bool        &aspect_only);
    2727
    28     virtual bool SetupDeinterlace(bool, const QString &ovrf = "") { return false; }
     28    virtual bool SetupDeinterlace(bool, const QString &ovrf = "")
     29        { Q_UNUSED(ovrf); return false; }
    2930    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; }
    3133    virtual void ReleaseFrame(VideoFrame *frame);
    3234    virtual void ProcessFrame(VideoFrame *frame, OSD *osd,
    3335                              FilterChain *filterList,
    3436                              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        }
    3645    virtual void PrepareFrame(VideoFrame *buffer,
    37                               FrameScanType, OSD *osd)    {;}
     46                              FrameScanType, OSD *osd)
     47        { Q_UNUSED(buffer); Q_UNUSED(osd);}
    3848    virtual void Show(FrameScanType )                     {;}
    3949
    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); }
    4254    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); }
    4559    virtual void MoveResizeWindow(QRect )                 {;}
    4660    virtual bool CanVisualise(AudioPlayer *audio, MythRender *render)
    47         { return false; }
     61        { Q_UNUSED(audio); Q_UNUSED(render); return false; }
    4862    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; }
    5065    virtual MythPainter *GetOSDPainter(void) { return NULL; }
    5166    virtual VideoFrame *GetLastDecodedFrame(void);
    5267    virtual VideoFrame *GetLastShownFrame(void);
  • mythtv/libs/libmythtv/videoout_nullvdpau.cpp

    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, 
    522522                                        void        *codec_private,
    523523                                        bool        &aspect_only)
    524524{
     525    Q_UNUSED(codec_private);
    525526    LOG(VB_PLAYBACK, LOG_INFO, LOC +
    526527        QString("InputChanged(%1,%2,%3) '%4'->'%5'")
    527528            .arg(video_dim_disp.width()).arg(video_dim_disp.height())
    bool VideoOutputNullVDPAU::BufferSizeCheck(void) 
    612613
    613614void* VideoOutputNullVDPAU::GetDecoderContext(unsigned char* buf, uint8_t*& id)
    614615{
     616    Q_UNUSED(buf);
     617    Q_UNUSED(id);
    615618    return &m_context;
    616619}
  • mythtv/libs/libmythtv/videoout_nullvdpau.h

    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 
    4646                              MythCodecID  av_codec_id,
    4747                              void        *codec_private,
    4848                              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; }
    5255    virtual void ClearAfterSeek(void);
    5356    virtual void ReleaseFrame(VideoFrame *frame);
    5457    virtual void ProcessFrame(VideoFrame *frame, OSD *osd,
    5558                              FilterChain *filterList,
    5659                              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        }
    5868    virtual void PrepareFrame(VideoFrame *buffer,
    59                               FrameScanType, OSD *osd)    {;}
     69                              FrameScanType, OSD *osd)
     70        { Q_UNUSED(buffer); Q_UNUSED(osd); }
    6071    virtual void Show(FrameScanType )                     {;}
    6172
    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); }
    6477    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); }
    6782    virtual void MoveResizeWindow(QRect )                 {;}
    6883    virtual bool CanVisualise(AudioPlayer *audio, MythRender *render)
    69         { return false; }
     84        { Q_UNUSED(audio); Q_UNUSED(render); return false; }
    7085    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; }
    7288    virtual MythPainter *GetOSDPainter(void) { return NULL; }
    7389    virtual void DrawSlice(VideoFrame *frame, int x, int y, int w, int h);
    7490
  • mythtv/libs/libmythtv/videoout_opengl.cpp

    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, 
    247247                                     void        *codec_private,
    248248                                     bool        &aspect_only)
    249249{
     250    Q_UNUSED(codec_private);
    250251    LOG(VB_PLAYBACK, LOG_INFO, LOC + QString("InputChanged(%1,%2,%3) %4->%5")
    251252            .arg(video_dim_disp.width()).arg(video_dim_disp.height())
    252253            .arg(aspect)
    void VideoOutputOpenGL::ProcessFrame(VideoFrame *frame, OSD *osd, 
    475476                                     const PIPMap &pipPlayers,
    476477                                     FrameScanType scan)
    477478{
     479    Q_UNUSED(osd);
    478480    QMutexLocker locker(&gl_context_lock);
    479481
    480482    if (!gl_context)
    void VideoOutputOpenGL::PrepareFrame(VideoFrame *buffer, FrameScanType t, 
    683685
    684686void VideoOutputOpenGL::Show(FrameScanType scan)
    685687{
     688    Q_UNUSED(scan);
    686689    OpenGLLocker ctx_lock(gl_context);
    687690    if (IsErrored())
    688691    {
    void VideoOutputOpenGL::ShowPIP(VideoFrame *frame, 
    864867                                MythPlayer  *pipplayer,
    865868                                PIPLocation  loc)
    866869{
     870    Q_UNUSED(frame);
    867871    if (!pipplayer)
    868872        return;
    869873
    MythPainter *VideoOutputOpenGL::GetOSDPainter(void) 
    10181022// virtual
    10191023bool VideoOutputOpenGL::CanVisualise(AudioPlayer *audio, MythRender *render)
    10201024{
     1025    Q_UNUSED(render);
    10211026    return VideoOutput::CanVisualise(audio, gl_context);
    10221027}
    10231028
    bool VideoOutputOpenGL::CanVisualise(AudioPlayer *audio, MythRender *render) 
    10251030bool VideoOutputOpenGL::SetupVisualisation(AudioPlayer *audio,
    10261031                                MythRender *render, const QString &name)
    10271032{
     1033    Q_UNUSED(render);
    10281034    return VideoOutput::SetupVisualisation(audio, gl_context, name);
    10291035}
  • mythtv/libs/libmythtv/videoout_openglvaapi.cpp

    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) 
    224224
    225225bool VideoOutputOpenGLVAAPI::SetupDeinterlace(bool i, const QString& ovrf)
    226226{
     227    Q_UNUSED(ovrf);
    227228    //m_deintfiltername = !db_vdisp_profile ? "" :
    228229    //                     db_vdisp_profile->GetFilteredDeint(ovrf);
    229230    m_deinterlacing = i;
  • mythtv/libs/libmythtv/videoout_vdpau.cpp

    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, 
    393393                                    const PIPMap &pipPlayers,
    394394                                    FrameScanType scan)
    395395{
     396    Q_UNUSED(osd);
     397    Q_UNUSED(filterList);
     398    Q_UNUSED(scan);
    396399    QMutexLocker locker(&m_lock);
    397400    CHECK_ERROR("ProcessFrame");
    398401
    void VideoOutputVDPAU::DrawSlice(VideoFrame *frame, int /* x */, int /* y */, in 
    688691
    689692void VideoOutputVDPAU::Show(FrameScanType scan)
    690693{
     694    Q_UNUSED(scan);
    691695    QMutexLocker locker(&m_lock);
    692696    CHECK_ERROR("Show");
    693697
    bool VideoOutputVDPAU::InputChanged(const QSize &video_dim_buf, 
    714718                                    void        *codec_private,
    715719                                    bool        &aspect_only)
    716720{
     721    Q_UNUSED(codec_private);
    717722    LOG(VB_PLAYBACK, LOG_INFO, LOC +
    718723        QString("InputChanged(%1,%2,%3) '%4'->'%5'")
    719724            .arg(video_dim_disp.width()).arg(video_dim_disp.height())
    void VideoOutputVDPAU::SetVideoFlip(void) 
    13411346
    13421347void* VideoOutputVDPAU::GetDecoderContext(unsigned char* buf, uint8_t*& id)
    13431348{
     1349    Q_UNUSED(buf);
     1350    Q_UNUSED(id);
    13441351    return &m_context;
    13451352}
  • mythtv/libs/libmythtv/videoout_vdpau.h

    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 
    7070                               QString filename = "");
    7171
    7272    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        }
    7477    virtual bool SetupVisualisation(AudioPlayer *audio, MythRender *render,
    7578                                    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        }
    7783    virtual QStringList GetVisualiserList(void);
    7884    virtual void ClearDummyFrame(VideoFrame* frame);
    7985    virtual void SetVideoFlip(void);
  • mythtv/libs/libmythtv/videoout_xv.cpp

    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, 
    364364                                      bool &xvsetdefaults,
    365365                                      QString *adaptor_name)
    366366{
     367    Q_UNUSED(mcodecid);
    367368    if (adaptor_name)
    368369        *adaptor_name = QString::null;
    369370
    int VideoOutputXv::GrabSuitableXvPort(MythXDisplay* disp, Window root, 
    522523 */
    523524void VideoOutputXv::CreatePauseFrame(VOSType subtype)
    524525{
     526    Q_UNUSED(subtype);
    525527    if (av_pause_frame.buf)
    526528    {
    527529        av_freep(&av_pause_frame.buf);
  • mythtv/libs/libmythtv/videooutbase.cpp

    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, 
    766766                               void        *codec_private,
    767767                               bool        &aspect_only)
    768768{
     769    Q_UNUSED(aspect_only);
    769770    window.InputChanged(video_dim_buf, video_dim_disp,
    770771                        aspect, myth_codec_id, codec_private);
    771772
  • mythtv/libs/libmythtv/videooutbase.h

    diff --git a/mythtv/libs/libmythtv/videooutbase.h b/mythtv/libs/libmythtv/videooutbase.h
    index afc7abf..ae9b0de 100644
    a b class VideoOutput 
    7878                              OSD *osd) = 0;
    7979    virtual void Show(FrameScanType) = 0;
    8080
    81     virtual void WindowResized(const QSize &new_size) {}
     81    virtual void WindowResized(const QSize &new_size) { Q_UNUSED(new_size); }
    8282
    8383    virtual bool InputChanged(const QSize &video_dim_buf,
    8484                              const QSize &video_dim_disp,
    class VideoOutput 
    152152
    153153    /// \brief Return true if HW Acceleration is running
    154154    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; }
    156157
    157158    /// \brief Sets the number of frames played
    158159    virtual void SetFramesPlayed(long long fp) { framesPlayed = fp; };
    class VideoOutput 
    244245    virtual QRect GetPIPRect(PIPLocation location,
    245246                             MythPlayer *pipplayer = NULL,
    246247                             bool do_pixel_adj = true) const;
    247     virtual void RemovePIP(MythPlayer *pipplayer) { }
     248    virtual void RemovePIP(MythPlayer *pipplayer) { Q_UNUSED(pipplayer); }
    248249
    249250    virtual void SetPIPState(PIPState setting);
    250251
    251252    virtual QString GetOSDRenderer(void) const;
    252253    virtual MythPainter *GetOSDPainter(void) { return (MythPainter*)osd_painter; }
    253254    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; }
    255257
    256258    QString GetFilters(void) const;
    257259    /// \brief translates caption/dvd button rectangle into 'screen' space
  • mythtv/libs/libmythtv/videosource.cpp

    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 
    791791
    792792    void fillSelectionsFromDir(const QDir &dir, bool absPath = true)
    793793    {
     794        Q_UNUSED(absPath);
    794795        fillSelectionsFromDir(dir, 0, 255, QString::null, QString::null, false);
    795796    }
    796797
    class VBIDevice : public PathSetting, public CaptureCardDBStorage 
    898899
    899900    void fillSelectionsFromDir(const QDir &dir, bool absPath = true)
    900901    {
     902        Q_UNUSED(absPath);
    901903        fillSelectionsFromDir(dir, QString::null, QString::null);
    902904    }
    903905
    void ASIConfigurationGroup::probeCard(const QString &device) 
    19781980    }
    19791981    cardinfo->setValue(tr("Valid DVEO ASI card"));
    19801982#else
     1983    Q_UNUSED(device);
    19811984    cardinfo->setValue(QString("Not compiled with ASI support"));
    19821985#endif
    19831986}
  • mythtv/libs/libmythtv/videosource.h

    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 
    777777    virtual void Load(void);
    778778
    779779    virtual void Save(void) { }
    780     virtual void Save(QString destination) { }
     780    virtual void Save(QString destination) { Q_UNUSED(destination); }
    781781
    782782  public slots:
    783783    void menu(void);
  • mythtv/libs/libmythtv/visualisations/videovisualgoom.cpp

    diff --git a/mythtv/libs/libmythtv/visualisations/videovisualgoom.cpp b/mythtv/libs/libmythtv/visualisations/videovisualgoom.cpp
    index 42c2fda..2965935 100644
    a b VideoVisualGoom::~VideoVisualGoom() 
    6666void VideoVisualGoom::Draw(const QRect &area, MythPainter *painter,
    6767                           QPaintDevice *device)
    6868{
     69    Q_UNUSED(painter);
     70    Q_UNUSED(device);
    6971    if (m_disabled || !m_render || area.isEmpty())
    7072        return;
    7173
  • mythtv/libs/libmythtv/visualisations/videovisualspectrum.cpp

    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 
    202202        return new VideoVisualSpectrum(audio, render);
    203203    }
    204204
    205     virtual bool SupportedRenderer(RenderType type) { return true; }
     205    virtual bool SupportedRenderer(RenderType type)
     206    {
     207        Q_UNUSED(type);
     208        return true;
     209    }
    206210} VideoVisualSpectrumFactory;
  • mythtv/libs/libmythtv/vsync.h

    diff --git a/mythtv/libs/libmythtv/vsync.h b/mythtv/libs/libmythtv/vsync.h
    index 94cbd4e..5df9f72 100644
    a b class DummyVideoSync : public VideoSync 
    220220
    221221    QString getName(void) const { return QString("Dummy"); }
    222222    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; }
    224224};
    225225#endif /* VSYNC_H_INCLUDED */
  • mythtv/libs/libmythui/mythgenerictree.cpp

    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, 
    166166    // In practical terms, mythmusic will use this to force the playback
    167167    // screen's ManagedTreeList to move to a given track in a given playlist
    168168
     169    Q_UNUSED(depth);
    169170    MythGenericTree *node = NULL;
    170171    for (int i = 0; i < route_of_branches.count(); i++)
    171172    {
  • mythtv/libs/libmythui/mythnotificationcenter.cpp

    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) 
    12391239 */
    12401240void NCPrivate::RefreshScreenPosition(int from)
    12411241{
     1242    Q_UNUSED(from);
    12421243    QList<MythNotificationScreen*>::iterator it       = m_screens.begin();
    12431244    QList<MythNotificationScreen*>::iterator itend    = m_screens.end();
    12441245
    void ShowNotificationError(const QString &msg, 
    14851486                           const VNMask visibility,
    14861487                           const MythNotification::Priority priority)
    14871488{
     1489    Q_UNUSED(visibility);
     1490    Q_UNUSED(priority);
    14881491    ShowNotification(true, msg, from, detail);
    14891492}
    14901493
    void ShowNotification(MythNotification::Type type, 
    15301533                      const MythNotification::Priority priority,
    15311534                      const QString &style)
    15321535{
     1536    Q_UNUSED(style);
    15331537    if (!GetNotificationCenter())
    15341538        return;
    15351539
  • mythtv/libs/libmythui/mythpainter.cpp

    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 &) 
    5757
    5858void MythPainter::Clear(QPaintDevice *device, const QRegion &region)
    5959{
     60    Q_UNUSED(device);
     61    Q_UNUSED(region);
    6062}
    6163
    6264void MythPainter::DrawImage(int x, int y, MythImage *im, int alpha)
  • mythtv/libs/libmythui/mythpainter_qimage.h

    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 
    4747
    4848  protected:
    4949    virtual MythImage* GetFormatImagePriv(void) { return new MythImage(this); }
    50     virtual void DeleteFormatImagePriv(MythImage *im) { }
     50    virtual void DeleteFormatImagePriv(MythImage *im) { Q_UNUSED(im); }
    5151
    5252    void CheckPaintMode(const QRect &area);
    5353
  • mythtv/libs/libmythui/mythrender_opengl.h

    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 
    155155    virtual void  PopTransformation(void) = 0;
    156156    void  Flush(bool use_fence);
    157157    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    }
    159165    void  SetBackground(int r, int g, int b, int a);
    160166    void  SetFence(void);
    161167
  • mythtv/libs/libmythui/mythrender_opengl1.cpp

    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) 
    219219void MythRenderOpenGL1::SetShaderParams(uint obj, const QMatrix4x4 &m,
    220220                                        const char* uniform)
    221221{
     222    Q_UNUSED(uniform);
    222223    GLMatrix4x4 v(m);
    223224
    224225    makeCurrent();
  • mythtv/libs/libmythui/mythrender_opengl1.h

    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 
    3535                              const QPen &linePen, int alpha);
    3636    virtual void DrawRoundRectPriv(const QRect &area, int cornerRadius,
    3737                                   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    }
    3946
    4047    virtual void Init2DState(void);
    4148    virtual void InitProcs(void);
  • mythtv/libs/libmythui/mythrender_vdpau.cpp

    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, 
    15981598
    15991599static const char* dummy_get_error_string(VdpStatus status)
    16001600{
     1601    Q_UNUSED(status);
    16011602    static const char dummy[] = "Unknown";
    16021603    return &dummy[0];
    16031604}
  • mythtv/libs/libmythui/myththemedmenu.cpp

    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, 
    102102      m_state(state), m_allocedstate(false), m_foundtheme(false),
    103103      m_ignorekeys(false), m_wantpop(false), m_menuPopup(NULL)
    104104{
     105    Q_UNUSED(cdir);
     106    Q_UNUSED(allowreorder);
    105107    if (!m_state)
    106108    {
    107109        m_state = new MythThemedMenuState(parent, "themedmenustate");
    void MythThemedMenu::addButton(const QString &type, const QString &text, 
    691693                                const QString &description,
    692694                                const QString &password)
    693695{
     696    Q_UNUSED(alttext);
    694697    ThemedButton newbutton;
    695698    newbutton.type = type;
    696699    newbutton.action = action;
  • mythtv/libs/libmythui/mythudplistener.cpp

    diff --git a/mythtv/libs/libmythui/mythudplistener.cpp b/mythtv/libs/libmythui/mythudplistener.cpp
    index 502899e..0dff266 100644
    a b void MythUDPListener::Disable(void) 
    6363void MythUDPListener::Process(const QByteArray &buf, QHostAddress sender,
    6464                              quint16 senderPort)
    6565{
     66    Q_UNUSED(sender);
     67    Q_UNUSED(senderPort);
    6668    QString errorMsg;
    6769    int errorLine = 0;
    6870    int errorColumn = 0;
  • mythtv/libs/libmythui/mythuibuttonlist.cpp

    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, 
    4141                                   bool showScrollArrows, bool showScrollBar)
    4242    : MythUIType(parent, name)
    4343{
     44    Q_UNUSED(showScrollArrows);
    4445    m_Area      = area;
    4546    m_showArrow = showArrow;
    4647    m_showScrollBar = showScrollBar;
  • mythtv/libs/libmythui/mythuiguidegrid.cpp

    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) 
    297297void MythUIGuideGrid::DrawSelf(MythPainter *p, int xoffset, int yoffset,
    298298                               int alphaMod, QRect clipRect)
    299299{
     300    Q_UNUSED(xoffset);
     301    Q_UNUSED(yoffset);
     302    Q_UNUSED(clipRect);
    300303    for (int i = 0; i < m_rowCount; i++)
    301304    {
    302305        QList<UIGTCon *>::iterator it = m_allData[i].begin();
  • mythtv/libs/libmythui/mythuihelper.cpp

    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) 
    13931393
    13941394QImage *MythUIHelper::LoadScaleImage(QString filename, bool fromcache)
    13951395{
     1396    Q_UNUSED(fromcache);
    13961397    LOG(VB_GUI | VB_FILE, LOG_INFO,  LOC +
    13971398        QString("LoadScaleImage(%1)").arg(filename));
    13981399
    QImage *MythUIHelper::LoadScaleImage(QString filename, bool fromcache) 
    14931494
    14941495QPixmap *MythUIHelper::LoadScalePixmap(QString filename, bool fromcache)
    14951496{
     1497    Q_UNUSED(fromcache);
    14961498    LOG(VB_GUI | VB_FILE, LOG_INFO, LOC +
    14971499        QString("LoadScalePixmap(%1)").arg(filename));
    14981500
  • mythtv/libs/libmythui/mythuiimage.cpp

    diff --git a/mythtv/libs/libmythui/mythuiimage.cpp b/mythtv/libs/libmythui/mythuiimage.cpp
    index cf1da9e..3eba4b2 100644
    a b void MythUIImage::Pulse(void) 
    12641264void MythUIImage::DrawSelf(MythPainter *p, int xoffset, int yoffset,
    12651265                           int alphaMod, QRect clipRect)
    12661266{
     1267    Q_UNUSED(clipRect);
    12671268    m_ImagesLock.lock();
    12681269
    12691270    if (m_Images.size() > 0)
  • mythtv/libs/libmythui/mythuishape.cpp

    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) 
    5858void MythUIShape::DrawSelf(MythPainter *p, int xoffset, int yoffset,
    5959                           int alphaMod, QRect clipRect)
    6060{
     61    Q_UNUSED(clipRect);
    6162    int alpha = CalcAlpha(alphaMod);
    6263    QRect area = GetArea();
    6364    m_cropRect.CalculateArea(area);
  • mythtv/libs/libmythui/mythuisimpletext.cpp

    diff --git a/mythtv/libs/libmythui/mythuisimpletext.cpp b/mythtv/libs/libmythui/mythuisimpletext.cpp
    index 78cbddc..e276ab3 100644
    a b MythUISimpleText::~MythUISimpleText() 
    4343void MythUISimpleText::DrawSelf(MythPainter *p, int xoffset, int yoffset,
    4444                                int alphaMod, QRect clipRect)
    4545{
     46    Q_UNUSED(clipRect);
    4647    QRect area = GetArea().toQRect();
    4748    area.translate(xoffset, yoffset);
    4849
  • mythtv/libs/libmythui/mythuitext.cpp

    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) 
    412412void MythUIText::DrawSelf(MythPainter *p, int xoffset, int yoffset,
    413413                          int alphaMod, QRect clipRect)
    414414{
     415    Q_UNUSED(clipRect);
    415416    if (m_Canvas.isEmpty())
    416417        return;
    417418
  • mythtv/libs/libmythui/mythuitype.cpp

    diff --git a/mythtv/libs/libmythui/mythuitype.cpp b/mythtv/libs/libmythui/mythuitype.cpp
    index d25ce5b..6c1ff08 100644
    a b bool MythUIType::ParseElement( 
    12431243{
    12441244    //FIXME add movement etc.
    12451245
     1246    Q_UNUSED(filename);
     1247    Q_UNUSED(showWarnings);
    12461248    if (element.tagName() == "position")
    12471249        SetPosition(parsePoint(element));
    12481250    else if (element.tagName() == "area")
  • mythtv/libs/libmythui/mythuivideo.cpp

    diff --git a/mythtv/libs/libmythui/mythuivideo.cpp b/mythtv/libs/libmythui/mythuivideo.cpp
    index 199c2f7..10f6bd0 100644
    a b void MythUIVideo::Pulse(void) 
    7979void MythUIVideo::DrawSelf(MythPainter *p, int xoffset, int yoffset,
    8080                           int alphaMod, QRect clipRect)
    8181{
     82    Q_UNUSED(clipRect);
    8283    QRect area = GetArea();
    8384    area.translate(xoffset, yoffset);
    8485
  • mythtv/libs/libmythui/mythuiwebbrowser.cpp

    diff --git a/mythtv/libs/libmythui/mythuiwebbrowser.cpp b/mythtv/libs/libmythui/mythuiwebbrowser.cpp
    index 489e5d9..32b01f2 100644
    a b void MythUIWebBrowser::Pulse(void) 
    15111511void MythUIWebBrowser::DrawSelf(MythPainter *p, int xoffset, int yoffset,
    15121512                                int alphaMod, QRect clipRegion)
    15131513{
     1514    Q_UNUSED(clipRegion);
    15141515    if (!m_image || m_image->isNull() || !m_browser || m_browser->hasFocus())
    15151516        return;
    15161517
  • mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp

    diff --git a/mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp b/mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp
    index bcd4b55..716c328 100644
    a b  
    2323JSONSerializer::JSONSerializer( QIODevice *pDevice, const QString &sRequestName )
    2424               : m_Stream( pDevice ), m_bCommaNeeded( false )
    2525{
     26    Q_UNUSED(sRequestName);
    2627}
    2728
    2829//////////////////////////////////////////////////////////////////////////////
    QString JSONSerializer::GetContentType() 
    4950
    5051void JSONSerializer::BeginSerialize( QString &sName )
    5152{
     53    Q_UNUSED(sName);
     54
    5255    m_bCommaNeeded = false;
    5356
    5457    m_Stream << "{";
    void JSONSerializer::EndSerialize() 
    7477
    7578void JSONSerializer::BeginObject( const QString &sName, const QObject  *pObject )
    7679{
     80    Q_UNUSED(pObject);
     81
    7782    m_bCommaNeeded = false;
    7883   
    7984    m_Stream << "\"" << sName << "\": {";
    void JSONSerializer::BeginObject( const QString &sName, const QObject *pObject 
    8590
    8691void JSONSerializer::EndObject  ( const QString &sName, const QObject  *pObject )
    8792{
     93    Q_UNUSED(sName);
     94    Q_UNUSED(pObject);
     95
    8896    m_bCommaNeeded = false;
    8997   
    9098    m_Stream << "}";
    void JSONSerializer::AddProperty( const QString &sName, 
    99107                                  const QMetaObject   *pMetaParent,
    100108                                  const QMetaProperty *pMetaProp )
    101109{
     110    Q_UNUSED(pMetaParent);
     111    Q_UNUSED(pMetaProp);
     112
    102113    if (m_bCommaNeeded)
    103114        m_Stream << ", ";
    104115
  • mythtv/libs/libmythupnp/serializers/serializer.h

    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 
    3434
    3535        QCryptographicHash  m_hash;
    3636
    37         virtual void BeginSerialize( QString &sName ) {}
     37        virtual void BeginSerialize( QString &sName ) { Q_UNUSED(sName); }
    3838        virtual void EndSerialize  () {}
    3939
    4040        virtual void BeginObject( const QString &sName, const QObject  *pObject ) = 0;
  • mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp

    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() 
    6161
    6262void XmlSerializer::BeginSerialize( QString &sName )
    6363{
     64    Q_UNUSED(sName);
    6465    m_pXmlWriter->writeStartDocument( "1.0" );
    6566//    m_pXmlWriter->writeStartElement( m_sRequestName + "Response" );
    6667}
    void XmlSerializer::BeginObject( const QString &sName, const QObject *pObject ) 
    109110
    110111void XmlSerializer::EndObject  ( const QString &sName, const QObject  *pObject )
    111112{
     113    Q_UNUSED(sName);
     114    Q_UNUSED(pObject);
    112115    m_pXmlWriter->writeEndElement();
    113116}
    114117
    void XmlSerializer::RenderEnum( const QString &sName , 
    142145                                const QVariant      &vValue,
    143146                                const QMetaProperty *pMetaProp )
    144147{
     148    Q_UNUSED(sName);
    145149    QString   sValue;
    146150    QMetaEnum metaEnum = pMetaProp->enumerator();
    147151
    QString XmlSerializer::GetContentName( const QString &sName, 
    327331{
    328332    // Try to read Name or TypeName from classinfo metadata.
    329333
     334    Q_UNUSED(pMetaProp);
    330335    int nClassIdx = -1;
    331336
    332337    if ( pMetaObject )
  • mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp

    diff --git a/mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp b/mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp
    index 3758fbb..570794c 100644
    a b XmlPListSerializer::~XmlPListSerializer() 
    3535
    3636void XmlPListSerializer::BeginSerialize(QString &sName)
    3737{
     38    Q_UNUSED(sName);
    3839    m_pXmlWriter->setAutoFormatting(true);
    3940    m_pXmlWriter->setAutoFormattingIndent(4);
    4041    m_pXmlWriter->writeStartDocument("1.0");
    void XmlPListSerializer::BeginObject(const QString &sName, 
    238239void XmlPListSerializer::EndObject(const QString &sName,
    239240                                   const QObject *pObject)
    240241{
     242    Q_UNUSED(sName);
     243    Q_UNUSED(pObject);
    241244    m_pXmlWriter->writeEndElement(); // dict
    242245}
    243246
    void XmlPListSerializer::AddProperty(const QString &sName, 
    246249                                     const QMetaObject *pMetaParent,
    247250                                     const QMetaProperty *pMetaProp)
    248251{
     252    Q_UNUSED(pMetaParent);
     253    Q_UNUSED(pMetaProp);
    249254    RenderValue(sName, vValue);
    250255}
    251256
  • mythtv/libs/libmythupnp/upnpcds.cpp

    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, 
    968968                                     UPnpCDSExtensionResults* pResults,
    969969                                     IDTokenMap tokens, QString currentToken)
    970970{
     971    Q_UNUSED(pRequest);
     972    Q_UNUSED(pResults);
     973    Q_UNUSED(tokens);
     974    Q_UNUSED(currentToken);
    971975    return false;
    972976}
    973977
    bool UPnpCDSExtension::LoadChildren(const UPnpCDSRequest* pRequest, 
    989993                                    UPnpCDSExtensionResults* pResults,
    990994                                    IDTokenMap tokens, QString currentToken)
    991995{
     996    Q_UNUSED(pRequest);
     997    Q_UNUSED(pResults);
     998    Q_UNUSED(tokens);
     999    Q_UNUSED(currentToken);
    9921000    return false;
    9931001}
    9941002
  • mythtv/libs/libmythupnp/upnpdevice.cpp

    diff --git a/mythtv/libs/libmythupnp/upnpdevice.cpp b/mythtv/libs/libmythupnp/upnpdevice.cpp
    index 1e9371d..81c32dc 100644
    a b void UPnpDeviceDesc::GetValidXML( 
    338338    const QString &sBaseAddress, int nPort,
    339339    QTextStream &os, const QString &sUserAgent )
    340340{
     341    Q_UNUSED(nPort);
    341342#if 0
    342343    os.setEncoding( QTextStream::UnicodeUTF8 );
    343344#endif
  • mythtv/libs/libmythupnp/upnphelpers.cpp

    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, 
    112112                        const double videoFrameRate, const QString &container,
    113113                        const QString &vidCodec, const QString &audioCodec)
    114114{
     115    Q_UNUSED(videoFrameRate);
    115116    QString sProfileName;
    116117    bool isHD = (resolution.height() >= 720) || (resolution.width() > 720);
    117118
  • mythtv/libs/libmythupnp/websocket.cpp

    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) 
    657657
    658658void WebSocketWorker::HandleControlFrame(const WebSocketFrame &frame)
    659659{
    660 
     660    Q_UNUSED(frame);
    661661}
    662662
    663663void WebSocketWorker::HandleDataFrame(const WebSocketFrame &frame)
  • mythtv/libs/libmythupnp/websocket.h

    diff --git a/mythtv/libs/libmythupnp/websocket.h b/mythtv/libs/libmythupnp/websocket.h
    index 9a130f5..c95c5b4 100644
    a b class WebSocketExtension : public QObject 
    142142    WebSocketExtension() : QObject() { };
    143143    virtual ~WebSocketExtension() {};
    144144
    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; }
    147149
    148150  signals:
    149151    void SendTextMessage(const QString &);
  • mythtv/libs/libmythupnp/wsdl.cpp

    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, 
    363363                                 QString       sMsgName,
    364364                                 QString       sTypeName )
    365365{
     366    Q_UNUSED(oInfo);
    366367    QDomElement oMsg = createElement( "message" );
    367368
    368369    oMsg.setAttribute( "name", sMsgName );
  • mythtv/libs/libmythupnp/xsd.cpp

    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 ) 
    513513
    514514bool Xsd::IsEnum( const QMetaProperty &metaProperty, const QString &sType )
    515515{
     516    Q_UNUSED(sType);
    516517    if (metaProperty.isEnumType() || metaProperty.isFlagType() )
    517518        return true;
    518519
  • mythtv/programs/mythbackend/mainserver.cpp

    diff --git a/mythtv/programs/mythbackend/mainserver.cpp b/mythtv/programs/mythbackend/mainserver.cpp
    index 3503b6f..4d961b0 100644
    a b void MainServer::DoHandleUndeleteRecording( 
    31353135void MainServer::HandleRescheduleRecordings(const QStringList &request,
    31363136                                            PlaybackSock *pbs)
    31373137{
     3138    Q_UNUSED(request);
    31383139     ScheduledRecording::RescheduleMatch(0, 0, 0, QDateTime(),
    31393140                                         "HandleRescheduleRecordings");
    31403141
    void MainServer::HandleMusicFindLyrics(const QStringList &slist, PlaybackSock *p 
    67176718
    67186719void MainServer::HandleMusicGetLyricGrabbers(const QStringList &slist, PlaybackSock *pbs)
    67196720{
     6721    Q_UNUSED(slist);
    67206722    QStringList strlist;
    67216723
    67226724    MythSocket *pbssock = pbs->getSocket();
  • mythtv/programs/mythbackend/mythsettings.cpp

    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, 
    728728                    const QMap<QString,QString> &params,
    729729                    QString &result)
    730730{
     731    Q_UNUSED(database_settings);
    731732    QMap<QString,QString>::const_iterator it = params.begin();
    732733    for (; it != params.end(); ++it)
    733734    {
  • mythtv/programs/mythbackend/services/capture.h

    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 
    3636
    3737    public:
    3838
    39         Q_INVOKABLE explicit Capture( QObject *parent = 0 ) {}
     39        Q_INVOKABLE explicit Capture( QObject *parent = 0 ) { Q_UNUSED(parent); }
    4040
    4141    public:
    4242
  • mythtv/programs/mythbackend/services/channel.h

    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 
    3636
    3737    public:
    3838
    39         Q_INVOKABLE explicit Channel( QObject *parent = 0 ) {}
     39        Q_INVOKABLE explicit Channel( QObject *parent = 0 ) { Q_UNUSED(parent); }
    4040
    4141    public:
    4242
  • mythtv/programs/mythbackend/services/content.h

    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 
    3636
    3737    public:
    3838
    39         Q_INVOKABLE explicit Content( QObject *parent = 0 ) {}
     39        Q_INVOKABLE explicit Content( QObject *parent = 0 ) { Q_UNUSED(parent); }
    4040
    4141    public:
    4242
  • mythtv/programs/mythbackend/services/dvr.h

    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 
    3636
    3737    public:
    3838
    39         Q_INVOKABLE explicit Dvr( QObject *parent = 0 ) {}
     39        Q_INVOKABLE explicit Dvr( QObject *parent = 0 ) { Q_UNUSED(parent); }
    4040
    4141    public:
    4242
  • mythtv/programs/mythbackend/services/guide.cpp

    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, 
    178178                                        const QString   &sSort,
    179179                                        bool             bDescending)
    180180{
     181    Q_UNUSED(bOnlyNew);
    181182    if (!rawStartTime.isNull() && !rawStartTime.isValid())
    182183        throw( "StartTime is invalid" );
    183184
  • mythtv/programs/mythbackend/services/guide.h

    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 
    4343
    4444    public:
    4545
    46         Q_INVOKABLE explicit Guide( QObject *parent = 0 ) {}
     46        Q_INVOKABLE explicit Guide( QObject *parent = 0 ) { Q_UNUSED(parent); }
    4747
    4848    public:
    4949
  • mythtv/programs/mythbackend/services/image.cpp

    diff --git a/mythtv/programs/mythbackend/services/image.cpp b/mythtv/programs/mythbackend/services/image.cpp
    index f81ac4a..44f1404 100644
    a b  
    3939 */
    4040QString Image::GetImageInfo( int id, const QString &tag )
    4141{
     42    Q_UNUSED(id);
     43    Q_UNUSED(tag);
    4244//    ImageManagerBe *mgr = ImageManagerBe::getInstance();
    4345
    4446//    // Find image in DB
  • mythtv/programs/mythbackend/services/image.h

    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 
    3232    Q_OBJECT
    3333
    3434public:
    35     Q_INVOKABLE explicit Image( QObject *parent = 0 ) {}
     35    Q_INVOKABLE explicit Image( QObject *parent = 0 ) { Q_UNUSED(parent); }
    3636
    3737public:
    3838    QString                     GetImageInfo                ( int   Id,
  • mythtv/programs/mythbackend/services/video.h

    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 
    3838
    3939    public:
    4040
    41         Q_INVOKABLE explicit Video( QObject *parent = 0 ) {}
     41        Q_INVOKABLE explicit Video( QObject *parent = 0 ) { Q_UNUSED(parent); }
    4242
    4343    public:
    4444
  • mythtv/programs/mythcommflag/CommDetector2.cpp

    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, 
    865865void CommDetector2::PrintFullMap(
    866866    ostream &out, const frm_dir_map_t *comm_breaks, bool verbose) const
    867867{
     868    Q_UNUSED(comm_breaks);
     869    Q_UNUSED(verbose);
    868870    FrameAnalyzer::FrameMap logoMap, blankMap, blankBreakMap, sceneMap;
    869871    if (logoFinder)
    870872        logoMap = logoFinder->GetMap(0);
  • mythtv/programs/mythcommflag/main.cpp

    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, 
    995995
    996996static int RebuildSeekTable(ProgramInfo *pginfo, int jobid)
    997997{
     998    Q_UNUSED(jobid);
    998999    QString filename = get_filename(pginfo);
    9991000
    10001001    if (!DoesFileExist(pginfo))
  • mythtv/programs/mythfrontend/audiogeneralsettings.cpp

    diff --git a/mythtv/programs/mythfrontend/audiogeneralsettings.cpp b/mythtv/programs/mythfrontend/audiogeneralsettings.cpp
    index 2f84a17..816a1d8 100644
    a b void AudioConfigSettings::AudioRescan() 
    254254
    255255void AudioConfigSettings::UpdateVisibility(const QString &device)
    256256{
     257    Q_UNUSED(device);
    257258    if (!m_MaxAudioChannels || !m_AudioUpmix || !m_AudioUpmixType)
    258259        return;
    259260
  • mythtv/programs/mythfrontend/guidegrid.cpp

    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, 
    16441644                                                    QDateTime start,
    16451645                                                    ProgramList *proglist)
    16461646{
     1647    Q_UNUSED(chanNum);
    16471648    if (row < 0 || row >= m_channelCount ||
    16481649        start != m_currentStartTime)
    16491650    {
  • mythtv/programs/mythfrontend/playbackbox.cpp

    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, 
    439439      m_groupSelected(false),
    440440      m_passwordEntered(false)
    441441{
     442    Q_UNUSED(showTV);
    442443    for (uint i = 0; i < sizeof(m_artImage) / sizeof(MythUIImage*); i++)
    443444    {
    444445        m_artImage[i] = NULL;
  • mythtv/programs/mythfrontend/videolist.cpp

    diff --git a/mythtv/programs/mythfrontend/videolist.cpp b/mythtv/programs/mythfrontend/videolist.cpp
    index 7bcbda0..d0b50cf 100644
    a b class VideoListImp 
    408408
    409409    bool Delete(unsigned int video_id, VideoList &dummy)
    410410    {
     411        Q_UNUSED(dummy);
    411412        bool ret = false;
    412413        MetadataPtr mp = m_metadata.byID(video_id);
    413414        if (mp)
  • mythtv/programs/mythfrontend/viewscheduled.cpp

    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) 
    6060               m_curinput(0),
    6161               m_player(player)
    6262{
     63    Q_UNUSED(showTV);
    6364    gCoreContext->addListener(this);
    6465}
    6566
  • mythtv/programs/mythfrontend/viewschedulediff.cpp

    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) 
    9696
    9797void ViewScheduleDiff::showStatus(MythUIButtonListItem *item)
    9898{
     99    Q_UNUSED(item);
    99100    ProgramInfo *pi = CurrentProgram();
    100101    if (!pi)
    101102        return;
  • mythtv/programs/mythlcdserver/lcdprocclient.cpp

    diff --git a/mythtv/programs/mythlcdserver/lcdprocclient.cpp b/mythtv/programs/mythlcdserver/lcdprocclient.cpp
    index b1f1191..532d031 100644
    a b void LCDProcClient::describeServer() 
    785785
    786786void LCDProcClient::veryBadThings(QAbstractSocket::SocketError error)
    787787{
     788    Q_UNUSED(error);
    788789    // Deal with failures to connect and inabilities to communicate
    789790    LOG(VB_GENERAL, LOG_ERR, QString("Could not connect to LCDd: %1")
    790791            .arg(m_socket->errorString()));
    void LCDProcClient::reset() 
    18241825
    18251826void LCDProcClient::dobigclock (bool init)
    18261827{
     1828    Q_UNUSED(init);
    18271829    QString aString;
    18281830    QString time = QTime::currentTime().toString( m_timeFormat );
    18291831    int toffset = 0;
  • mythtv/programs/mythmediaserver/controlrequesthandler.cpp

    diff --git a/mythtv/programs/mythmediaserver/controlrequesthandler.cpp b/mythtv/programs/mythmediaserver/controlrequesthandler.cpp
    index 356937d..403c25b 100644
    a b bool ControlRequestHandler::AnnounceSocket(void) 
    2525bool ControlRequestHandler::HandleQuery(SocketHandler *socket,
    2626                                    QStringList &commands, QStringList &slist)
    2727{
     28    Q_UNUSED(socket);
     29    Q_UNUSED(slist);
    2830    bool handled = false;
    2931    QString command = commands[0];
    3032
  • mythtv/programs/mythtranscode/audioreencodebuffer.h

    diff --git a/mythtv/programs/mythtranscode/audioreencodebuffer.h b/mythtv/programs/mythtranscode/audioreencodebuffer.h
    index 041e7ea..2b7198f 100644
    a b class AudioReencodeBuffer : public AudioOutput 
    5959    virtual void      ToggleMute(void)              { }
    6060    virtual MuteState GetMuteState(void) const      { return kMuteOff; }
    6161    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; }
    6364    virtual int       GetSWVolume(void)             { return 100; }
    6465    virtual bool      CanPassthrough(int, int, int, int) const
    6566                      { return m_initpassthru; }
  • mythtv/programs/mythtranscode/transcode.cpp

    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, 
    218218                             int AudioTrackNo,
    219219                             bool passthru)
    220220{
     221    Q_UNUSED(profileName);
    221222    QDateTime curtime = MythDate::current();
    222223    QDateTime statustime = curtime;
    223224    int audioFrame = 0;
  • mythtv/programs/mythtv-setup/importicons.cpp

    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() 
    132132
    133133void ImportIconsWizard::enableControls(dialogState state, bool selectEnabled)
    134134{
     135    Q_UNUSED(selectEnabled);
    135136    switch (state)
    136137    {
    137138        case STATE_NORMAL:
  • mythtv/programs/mythutil/backendutils.cpp

    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) 
    3838
    3939static int ClearSettingsCache(const MythUtilCommandLineParser &cmdline)
    4040{
     41    Q_UNUSED(cmdline);
    4142    if (gCoreContext->ConnectToMasterServer(false, false))
    4243    {
    4344        gCoreContext->SendMessage("CLEAR_SETTINGS_CACHE");
    static int SendSystemEvent(const MythUtilCommandLineParser &cmdline) 
    6465
    6566static int Reschedule(const MythUtilCommandLineParser &cmdline)
    6667{
     68    Q_UNUSED(cmdline);
    6769    if (gCoreContext->ConnectToMasterServer(false, false))
    6870    {
    6971        ScheduledRecording::RescheduleMatch(0, 0, 0, QDateTime(),
    static int Reschedule(const MythUtilCommandLineParser &cmdline) 
    7880
    7981static int ScanVideos(const MythUtilCommandLineParser &cmdline)
    8082{
     83    Q_UNUSED(cmdline);
    8184    if (gCoreContext->ConnectToMasterServer(false, false))
    8285    {
    8386        gCoreContext->SendReceiveStringList(QStringList() << "SCAN_VIDEOS");
  • mythtv/programs/mythutil/messageutils.cpp

    diff --git a/mythtv/programs/mythutil/messageutils.cpp b/mythtv/programs/mythutil/messageutils.cpp
    index a0afee0..3a4f217 100644
    a b const QString kNotification = 
    4242
    4343static int PrintMTemplate(const MythUtilCommandLineParser &cmdline)
    4444{
     45    Q_UNUSED(cmdline);
    4546    cerr << kMessage.toLocal8Bit().constData() << endl;
    4647    return GENERIC_EXIT_OK;
    4748}
    4849
    4950static int PrintNTemplate(const MythUtilCommandLineParser &cmdline)
    5051{
     52    Q_UNUSED(cmdline);
    5153    cerr << kNotification.toLocal8Bit().constData() << endl;
    5254    return GENERIC_EXIT_OK;
    5355}
  • mythtv/programs/mythutil/mpegutils.cpp

    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 
    476476
    477477    void HandlePMT(uint program_num, const ProgramMapTable *pmt)
    478478    {
     479        Q_UNUSED(program_num);
    479480        if (pmt && (!m_autopts || m_use_pid[pmt->tsheader()->PID()]))
    480481            Output(pmt);
    481482        if (pmt && m_autopts)
    class PrintMPEGStreamListener : public MPEGStreamListener, public PrintOutput 
    500501        }
    501502    }
    502503
    503     void HandleEncryptionStatus(uint program_number, bool)
     504    void HandleEncryptionStatus(uint program_number, bool encrypted)
    504505    {
     506        Q_UNUSED(program_number);
     507        Q_UNUSED(encrypted);
    505508    }
    506509
    507510    void HandleSplice(const SpliceInformationTable *sit)
    class PrintATSCMainStreamListener : 
    547550
    548551    void HandleVCT(uint pid, const VirtualChannelTable *vct)
    549552    {
     553        Q_UNUSED(pid);
    550554        Output(vct);
    551555    }
    552556};
    class PrintATSCAuxStreamListener : 
    605609        uint pid, const TerrestrialVirtualChannelTable *tvct)
    606610    {
    607611        // already handled in HandleVCT
     612        Q_UNUSED(pid);
     613        Q_UNUSED(tvct);
    608614    }
    609615
    610616    virtual void HandleCVCT(uint pid, const CableVirtualChannelTable *cvct)
    611617    {
    612618        // already handled in HandleVCT
     619        Q_UNUSED(pid);
     620        Q_UNUSED(cvct);
    613621    }
    614622
    615623    virtual void HandleRRT(const RatingRegionTable *rrt)
    class PrintDVBMainStreamListener : 
    668676
    669677    virtual void HandleSDT(uint tsid, const ServiceDescriptionTable *sdt)
    670678    {
     679        Q_UNUSED(tsid);
    671680        Output(sdt);
    672681    }
    673682
    class PrintDVBOtherStreamListener : 
    687696
    688697    virtual void HandleSDTo(uint tsid, const ServiceDescriptionTable *sdt)
    689698    {
     699        Q_UNUSED(tsid);
    690700        Output(sdt);
    691701    }
    692702
  • mythtv/programs/mythutil/musicmetautils.cpp

    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) 
    179179
    180180static int ScanMusic(const MythUtilCommandLineParser &cmdline)
    181181{
     182    Q_UNUSED(cmdline);
    182183    MusicFileScanner *fscan = new MusicFileScanner();
    183184    QStringList dirList;
    184185
    static int ScanMusic(const MythUtilCommandLineParser &cmdline) 
    197198
    198199static int UpdateRadioStreams(const MythUtilCommandLineParser &cmdline)
    199200{
     201    Q_UNUSED(cmdline);
    200202    // check we have the correct Music Schema Version (maybe the FE hasn't been run yet)
    201203    if (gCoreContext->GetNumSetting("MusicDBSchemaVer", 0) < 1024)
    202204    {