20 changes: 8 additions & 12 deletions mythtv/programs/mythfrontend/videodlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,9 @@ namespace
m_item->DisplayState(value, name);
}

void handleImage(const QString &name, const QString &filename) override // CopyMetadataDestination
void handleImage([[maybe_unused]] const QString &name,
[[maybe_unused]] const QString &filename) override // CopyMetadataDestination
{
(void) name;
(void) filename;
}

private:
Expand Down Expand Up @@ -3002,20 +3001,17 @@ namespace
{
explicit SimpleCollect(QStringList &fileList) : m_fileList(fileList) {}

DirectoryHandler *newDir(const QString &dirName,
const QString &fqDirName) override // DirectoryHandler
DirectoryHandler *newDir([[maybe_unused]] const QString &dirName,
[[maybe_unused]] const QString &fqDirName) override // DirectoryHandler
{
(void) dirName;
(void) fqDirName;
return this;
}

void handleFile(const QString &fileName, const QString &fqFileName,
const QString &extension, const QString &host) override // DirectoryHandler
void handleFile([[maybe_unused]] const QString &fileName,
const QString &fqFileName,
[[maybe_unused]] const QString &extension,
[[maybe_unused]] const QString &host) override // DirectoryHandler
{
(void) fileName;
(void) extension;
(void) host;
m_fileList.push_back(fqFileName);
}

Expand Down
3 changes: 1 addition & 2 deletions mythtv/programs/mythfrontend/videofileassoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,8 @@ bool FileAssocDialog::Create()
return true;
}

void FileAssocDialog::OnFASelected(MythUIButtonListItem *item)
void FileAssocDialog::OnFASelected([[maybe_unused]] MythUIButtonListItem *item)
{
(void) item;
UpdateScreen();
}

Expand Down
9 changes: 3 additions & 6 deletions mythtv/programs/mythfrontend/videolist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,8 @@ class dirhandler : public DirectoryHandler
}

DirectoryHandler *newDir(const QString &dir_name,
const QString &fq_dir_name) override // DirectoryHandler
[[maybe_unused]] const QString &fq_dir_name) override // DirectoryHandler
{
(void) fq_dir_name;
smart_dir_node dir = m_directory->addSubDir(dir_name);
DirectoryHandler *dh = new dirhandler(dir, m_prefix, m_metalist,
m_dhFreeList,
Expand All @@ -1172,13 +1171,11 @@ class dirhandler : public DirectoryHandler
handleFile(file_name, fq_file_name, extension, "");
}

void handleFile(const QString &file_name,
void handleFile([[maybe_unused]] const QString &file_name,
const QString &fq_file_name,
const QString &extension,
[[maybe_unused]] const QString &extension,
const QString &host) override // DirectoryHandler
{
(void) file_name;
(void) extension;
const QString& file_string(fq_file_name);

VideoMetadataListManager::VideoMetadataPtr myData(
Expand Down
9 changes: 3 additions & 6 deletions mythtv/programs/mythtranscode/mpeg2fix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ extern "C" {
#define O_LARGEFILE 0
#endif

static void *my_malloc(unsigned size, mpeg2_alloc_t reason)
static void *my_malloc(unsigned size, [[maybe_unused]] mpeg2_alloc_t reason)
{
(void)reason;

if (size)
{
char *buf = (char *) malloc (size + 63 + sizeof (void **));
Expand All @@ -65,10 +63,9 @@ static void *my_malloc(unsigned size, mpeg2_alloc_t reason)
return nullptr;
}

static void my_av_print(void *ptr, int level, const char* fmt, va_list vl)
static void my_av_print([[maybe_unused]] void *ptr,
int level, const char* fmt, va_list vl)
{
(void) ptr;

static QString s_fullLine("");

if (level > AV_LOG_INFO)
Expand Down
6 changes: 1 addition & 5 deletions mythtv/programs/mythtranscode/transcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static void TranscodeWriteText(void *ptr, unsigned char *buf, int len,

int Transcode::TranscodeFile(const QString &inputname,
const QString &outputname,
const QString &profileName,
[[maybe_unused]] const QString &profileName,
bool honorCutList, bool framecontrol,
int jobID, const QString& fifodir,
bool fifo_info, bool cleanCut,
Expand All @@ -211,10 +211,6 @@ int Transcode::TranscodeFile(const QString &inputname,
int hlsSegmentSize = 0;
int hlsSegmentFrames = 0;

#if !CONFIG_LIBMP3LAME
(void)profileName;
#endif

if (jobID >= 0)
JobQueue::ChangeJobComment(jobID, "0% " + QObject::tr("Completed"));

Expand Down