1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

make clang-tidy happy (old versions of clang tidy don't understand some NOLINT comments)

This commit is contained in:
Falk Werner 2024-01-08 17:53:09 +01:00 committed by Falk Werner
parent 9644d46dac
commit 30df12670f
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ target_link_libraries(webfuse_static PUBLIC PkgConfig::FUSE PkgConfig::LWS)
if(NOT(WITHOUT_CLANG_TIDY))
set_property(
TARGET webfuse_static
PROPERTY CXX_CLANG_TIDY clang-tidy -checks=readability-*,-readability-identifier-length -warnings-as-errors=*)
PROPERTY CXX_CLANG_TIDY clang-tidy -checks=readability-*,-readability-identifier-length,-readability-magic-numbers -warnings-as-errors=*)
endif()

View File

@ -126,7 +126,7 @@ public:
info.options = LWS_SERVER_OPTION_EXPLICIT_VHOSTS;
data.handler = handler;
data.connection_listener = [](bool){ };
data.connection_listener = [](bool /*unused*/){ };
data.connection = nullptr;
context = lws_create_context(&info);