From a2abca317a0bd19056f1cc8ab794cfc3beec01c3 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Tue, 16 May 2023 02:45:54 +0300 Subject: [PATCH] Moc: silence a GCC warning It's already silenced for Clang, extend it to cover GCC too. Change-Id: I212ca78d7a203d69d490c46e7ef4b78a60cabd80 Reviewed-by: Thiago Macieira --- tests/auto/tools/moc/backslash-newlines.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/tools/moc/backslash-newlines.h b/tests/auto/tools/moc/backslash-newlines.h index 899cb5d2fa..63ab00f8a9 100644 --- a/tests/auto/tools/moc/backslash-newlines.h +++ b/tests/auto/tools/moc/backslash-newlines.h @@ -30,6 +30,7 @@ public slots: QT_WARNING_PUSH QT_WARNING_DISABLE_CLANG("-Wcomment") +QT_WARNING_DISABLE_GCC("-Wcomment") // ends with \\\r should not make moc crash (QTBUG-53441) (no new lines on purpose!!) \