$NetBSD$

fix for newer Qt versions

--- CMakeLists.txt.orig	2025-08-10 12:58:11.000000000 +0000
+++ CMakeLists.txt
@@ -246,7 +246,7 @@ endif()
 #
 # Discover Qt dependencies.
 #
-find_package(Qt6 6.5 COMPONENTS Core Widgets Gui LinguistTools Svg Multimedia Qml QuickControls2 REQUIRED)
+find_package(Qt6 6.5 COMPONENTS Core Widgets Gui LinguistTools Svg Multimedia Qml QmlPrivate GuiPrivate QuickControls2 REQUIRED)
 find_package(Qt6DBus)
 
 if(USE_BUNDLED_QTKEYCHAIN)
@@ -295,7 +295,10 @@ if(NOT MSVC)
         -fsized-deallocation \
         -fdiagnostics-color=always \
         -Wunreachable-code \
-        -Wno-attributes"
+        -Wno-attributes \
+        -Wno-deprecated-declarations \
+        -Wno-unused-parameter \
+        -Wno-unused-result"
     )
     if(NOT CMAKE_COMPILER_IS_GNUCXX)
         # -Wshadow is buggy and broken in GCC, so do not enable it.
