From ac6ec5b1fab8c0a5c5984307f66de61b8d636e7e 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 (cherry picked from commit 1f4a085df537839eb9223826ef8d7f1ff9a159df) Reviewed-by: Liang Qi --- 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 cf5674a0908..1df4cf94a36 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); }