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 <eskil.abrahamsen-blomfeldt@qt.io>
(cherry picked from commit 1f4a085df537839eb9223826ef8d7f1ff9a159df)
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Tang Haixiang 2022-12-22 15:02:41 +08:00 committed by Liang Qi
parent 41e036ec72
commit ac6ec5b1fa

View File

@ -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);
}