git: 1e8d08adf4f9 - main - devel/qtcreator: Squash some warnings

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Wed, 21 Aug 2024 07:02:09 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1e8d08adf4f958d639d76acf2314163c6dc5f85b

commit 1e8d08adf4f958d639d76acf2314163c6dc5f85b
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2024-08-21 06:55:52 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2024-08-21 07:00:52 +0000

    devel/qtcreator: Squash some warnings
    
    -Wmaybe-unititialized is specific to GCC.
    
    warning: unknown warning option '-Werror=maybe-uninitialized'; did you
    mean '-Werror=uninitialized'? [-Wunknown-warning-option]
    
    PR:             280924
---
 .../files/patch-src_plugins_qmldesigner_CMakeLists.txt | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/devel/qtcreator/files/patch-src_plugins_qmldesigner_CMakeLists.txt b/devel/qtcreator/files/patch-src_plugins_qmldesigner_CMakeLists.txt
new file mode 100644
index 000000000000..22bf88593db9
--- /dev/null
+++ b/devel/qtcreator/files/patch-src_plugins_qmldesigner_CMakeLists.txt
@@ -0,0 +1,18 @@
+Squash "unknown warning option" warnings. -Wmaybe-unititialized is specific
+to GCC.
+
+warning: unknown warning option '-Werror=maybe-uninitialized'; did you mean '-Werror=uninitialized'? [-Wunknown-warning-option]
+
+Regressed by: https://code.qt.io/cgit/qt-creator/qt-creator.git/commit/?id=8129f886bcc50e91f55de15f751df183f0db822c
+
+--- src/plugins/qmldesigner/CMakeLists.txt.orig	2024-08-06 01:26:37 UTC
++++ src/plugins/qmldesigner/CMakeLists.txt
+@@ -50,7 +50,7 @@ if (TARGET QmlDesignerUtils)
+ )
+ 
+ if (TARGET QmlDesignerUtils)
+-    target_compile_options(QmlDesignerUtils PUBLIC $<$<COMPILE_LANG_AND_ID:CXX,Clang,GNU>:-Wno-error=maybe-uninitialized>)
++    target_compile_options(QmlDesignerUtils PUBLIC $<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-error=maybe-uninitialized>)
+     target_compile_options(QmlDesignerUtils PUBLIC $<$<COMPILE_LANG_AND_ID:CXX,Clang>:-Wno-unneeded-internal-declaration>)
+ endif()
+