From 333241b286e2c164640812cf39f7e8eff32914d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Tue, 21 May 2024 12:23:43 +0200 Subject: [PATCH] qt: Fix warning about missing return * lang/qt/src/qgpgmeexportjob.cpp (ExportJob::exec): Return a value and remove unused argument names. -- ExportJob::exec is never executed because its virtual overload is always used. Therefore it doesn't matter what value we return. --- lang/qt/src/qgpgmeexportjob.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/qt/src/qgpgmeexportjob.cpp b/lang/qt/src/qgpgmeexportjob.cpp index 803af7dd..2daaf567 100644 --- a/lang/qt/src/qgpgmeexportjob.cpp +++ b/lang/qt/src/qgpgmeexportjob.cpp @@ -107,8 +107,9 @@ void ExportJob::setExportFlags(unsigned int) } /* For ABI compat not pure virtual. */ -GpgME::Error ExportJob::exec(const QStringList &patterns, QByteArray &data) +GpgME::Error ExportJob::exec(const QStringList &, QByteArray &) { + return Error(); } #include "qgpgmeexportjob.moc"