diff --git a/src/Dictionaries/RegExpTreeDictionary.cpp b/src/Dictionaries/RegExpTreeDictionary.cpp index 05e10da374a..8c6fa5f708e 100644 --- a/src/Dictionaries/RegExpTreeDictionary.cpp +++ b/src/Dictionaries/RegExpTreeDictionary.cpp @@ -48,12 +48,6 @@ namespace ErrorCodes extern const int INCORRECT_DICTIONARY_DEFINITION; } -//const std::string_view kId; -//const std::string_view kParentId; -//const std::string_view kRegExp; -//const std::string_view kKeys; -//const std::string_view kValues; - const std::string kRegExp = "regexp"; const std::string kId = "id"; const std::string kParentId = "parent_id"; @@ -359,10 +353,10 @@ namespace } std::unordered_map RegExpTreeDictionary::matchSearchAllIndices( - const ColumnString::Chars & keys_data, - const ColumnString::Offsets & key_offsets, - const std::unordered_map & attributes, - const std::unordered_map & defaults) const + [[maybe_unused]] const ColumnString::Chars & keys_data, + [[maybe_unused]] const ColumnString::Offsets & key_offsets, + [[maybe_unused]] const std::unordered_map & attributes, + [[maybe_unused]] const std::unordered_map & defaults) const { #if USE_VECTORSCAN std::vector regexps_views(regexps.begin(), regexps.end()); @@ -473,8 +467,6 @@ std::unordered_map RegExpTreeDictionary::matchSearchAllIndice return result; #else - (void)keys_data; - (void)keys_offsets; throw Exception(ErrorCodes::UNSUPPORTED_METHOD, "Multi search all indices is not implemented when USE_VECTORSCAN is off"); #endif // USE_VECTORSCAN } diff --git a/src/Dictionaries/YAMLRegExpTreeDictionarySource.cpp b/src/Dictionaries/YAMLRegExpTreeDictionarySource.cpp index 4f91d1f7251..4a5d8142f82 100644 --- a/src/Dictionaries/YAMLRegExpTreeDictionarySource.cpp +++ b/src/Dictionaries/YAMLRegExpTreeDictionarySource.cpp @@ -61,7 +61,7 @@ namespace ErrorCodes void registerDictionarySourceYAMLRegExpTree(DictionarySourceFactory & factory) { - auto create_table_source = [=](const DictionaryStructure & dict_struct, + auto create_table_source = [=]([[maybe_unused]] const DictionaryStructure & dict_struct, [[maybe_unused]] const Poco::Util::AbstractConfiguration & config, [[maybe_unused]] const String & config_prefix, Block & ,