diff --git a/src/widgets/widgets/qtextedit.cpp b/src/widgets/widgets/qtextedit.cpp index 66bf2919eb..1abc9bef8e 100644 --- a/src/widgets/widgets/qtextedit.cpp +++ b/src/widgets/widgets/qtextedit.cpp @@ -2578,6 +2578,8 @@ void QTextEdit::setText(const QString &text) if (format == Qt::RichText) setHtml(text); else +#else + Q_UNUSED(format); #endif setPlainText(text); } diff --git a/src/widgets/widgets/qwidgettextcontrol.cpp b/src/widgets/widgets/qwidgettextcontrol.cpp index 714f8bfda8..815cc8736b 100644 --- a/src/widgets/widgets/qwidgettextcontrol.cpp +++ b/src/widgets/widgets/qwidgettextcontrol.cpp @@ -3116,6 +3116,7 @@ void QWidgetTextControlPrivate::append(const QString &text, Qt::TextFormat forma tmp.insertText(text); } #else + Q_UNUSED(format); tmp.insertText(text); #endif // QT_NO_TEXTHTMLPARSER if (!cursor.hasSelection())