From 1f4a085df537839eb9223826ef8d7f1ff9a159df Mon Sep 17 00:00:00 2001 From: Tang Haixiang Date: Thu, 22 Dec 2022 15:02:41 +0800 Subject: [PATCH] Add Q_UNUSED to avoid compilation errors Variable unused causes compile error or warning, use Q_UNUSED to eliminate it. Change-Id: I6efbc3150cef962fa45ccbbed0dc04794db3cbbe Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/plugins/platformthemes/gtk3/qgtk3theme.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp index 03371f0492e..553cd70d8ff 100644 --- a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp +++ b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp @@ -254,6 +254,7 @@ const QFont *QGtk3Theme::font(Font type) const QIcon QGtk3Theme::fileIcon(const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions) const { + Q_UNUSED(iconOptions); Q_ASSERT(m_storage); return m_storage->fileIcon(fileInfo); }