From 8977bda195070a83448e713e671438426901d257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=A7?= =?UTF-8?q?=D0=B8=D0=B6?= Date: Fri, 1 Mar 2024 14:33:37 +0100 Subject: [PATCH] add clang 16b support --- CMakeLists.txt | 4 ++-- srcbpatch/actionscollection.cpp | 2 +- srcbpatch/processing.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f995e12..b69cd46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,9 +39,9 @@ message(STATUS "CMAKE_CXX_FLAGS:" ${CMAKE_CXX_FLAGS}) if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") # GCC (GNU Compiler) if (CMAKE_BUILD_TYPE STREQUAL "Debug") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG -D_DEBUG -D_CONSOLE -Wno-unknown-pragmas -Wall -Werror -fno-rtti -pthread") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG -D_DEBUG -D_CONSOLE -Wno-unknown-pragmas -Wall -Werror -Wno-unqualified-std-cast-call -fno-rtti -pthread") elseif(CMAKE_BUILD_TYPE STREQUAL "Release") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG -D_CONSOLE -Wno-unknown-pragmas -Wall -Werror -fno-rtti -pthread") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG -D_CONSOLE -Wno-unknown-pragmas -Wall -Werror -Wno-unqualified-std-cast-call -fno-rtti -pthread") else() message(FATAL_ERROR "Unsupported compilation mode") endif() diff --git a/srcbpatch/actionscollection.cpp b/srcbpatch/actionscollection.cpp index b72ba56..6070efb 100644 --- a/srcbpatch/actionscollection.cpp +++ b/srcbpatch/actionscollection.cpp @@ -205,7 +205,7 @@ void ActionsCollection::OnJsonObjectParsed(TJSONObject* const pJson) // create binary lexeme from readed data if (const bool added = dictionary_.AddBinaryLexeme(pJson->name_, - AbstractBinaryLexeme::LexemeFromVector(std::move(adata))); + AbstractBinaryLexeme::LexemeFromVector(move(adata)); !added) {// overwritten ReportDuplicateNameError(pJson->name_); diff --git a/srcbpatch/processing.cpp b/srcbpatch/processing.cpp index d591f11..fd9eb97 100644 --- a/srcbpatch/processing.cpp +++ b/srcbpatch/processing.cpp @@ -46,7 +46,7 @@ unique_ptr CreateActionsFile(string_view actionsFileName) // Parsing of todo and lexemes // Dictionary will be inside - return unique_ptr(new ActionsCollection(std::move(adata))); + return unique_ptr(new ActionsCollection(move(adata)); }