diff --git a/CMakeLists.txt b/CMakeLists.txt index 75525b9..ccfa594 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/src/webfuse/ws/client.cpp b/src/webfuse/ws/client.cpp index 1f488fb..48f8ee7 100644 --- a/src/webfuse/ws/client.cpp +++ b/src/webfuse/ws/client.cpp @@ -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);