From: APTX Date: Sat, 31 Jan 2026 08:12:51 +0000 (+0900) Subject: Add check for deprecated Qt API usage X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=c33c9d294e12397d0f213a25e7f3517247b3a1ec;p=anidbudpclient.git Add check for deprecated Qt API usage --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d587a5a..dea3bcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,8 @@ option(WITH_CLIENT_DEBUG "Enable client debug logs" OFF) add_feature_info(ClientDebug WITH_CLIENT_DEBUG "Print extra logs for debug purposes") set(QT_MIN_VERSION "6.10.0") +add_compile_definitions("QT_DISABLE_DEPRECATED_UP_TO=QT_VERSION_CHECK(6, 10, 0)") + find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Network diff --git a/renameparser/ast.h b/renameparser/ast.h index 346a7f2..baa92f5 100644 --- a/renameparser/ast.h +++ b/renameparser/ast.h @@ -1,6 +1,8 @@ #ifndef AST_H #define AST_H +#include + #include #include #include