From 92b60dac65a5fb5723d3faf456f664aad96df7dc Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 17 Apr 2019 10:57:29 +0200 Subject: [PATCH] [libcalamares] Warnings-- over extra ; --- src/libcalamares/CppJob.cpp | 2 +- src/libcalamares/utils/Logger.cpp | 4 +--- src/libcalamares/utils/PluginFactory.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libcalamares/CppJob.cpp b/src/libcalamares/CppJob.cpp index b3f2385c6..0512df377 100644 --- a/src/libcalamares/CppJob.cpp +++ b/src/libcalamares/CppJob.cpp @@ -41,7 +41,7 @@ CppJob::setModuleInstanceKey( const QString& instanceKey ) void CppJob::setConfigurationMap( const QVariantMap& configurationMap ) { - Q_UNUSED( configurationMap ); + Q_UNUSED( configurationMap ) } } diff --git a/src/libcalamares/utils/Logger.cpp b/src/libcalamares/utils/Logger.cpp index 5f4401ca1..cbe711698 100644 --- a/src/libcalamares/utils/Logger.cpp +++ b/src/libcalamares/utils/Logger.cpp @@ -99,12 +99,10 @@ log( const char* msg, unsigned int debugLevel ) static void -CalamaresLogHandler( QtMsgType type, const QMessageLogContext& context, const QString& msg ) +CalamaresLogHandler( QtMsgType type, const QMessageLogContext&, const QString& msg ) { static QMutex s_mutex; - Q_UNUSED( context ); - QByteArray ba = msg.toUtf8(); const char* message = ba.constData(); diff --git a/src/libcalamares/utils/PluginFactory.h b/src/libcalamares/utils/PluginFactory.h index 22966b829..7338d53de 100644 --- a/src/libcalamares/utils/PluginFactory.h +++ b/src/libcalamares/utils/PluginFactory.h @@ -269,7 +269,7 @@ protected: template static QObject* createInstance( QWidget* parentWidget, QObject* parent ) { - Q_UNUSED( parentWidget ); + Q_UNUSED( parentWidget ) ParentType* p = nullptr; if ( parent ) {