diff --git a/src/widgets/styles/qstylehelper.cpp b/src/widgets/styles/qstylehelper.cpp index 8d67683eae..c6e9a8d013 100644 --- a/src/widgets/styles/qstylehelper.cpp +++ b/src/widgets/styles/qstylehelper.cpp @@ -99,6 +99,9 @@ bool hasAncestor(QObject *obj, QAccessible::Role role) delete iface; parent = parent->parent(); } +#else + Q_UNUSED(obj) + Q_UNUSED(role) #endif // QT_NO_ACCESSIBILITY return found; }