Skip to content

Commit

Permalink
control WarningsAsErrors from .clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis committed Jan 11, 2024
1 parent f4e589a commit 1b72a0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FormatStyle: file
HeaderFilterRegex: 'silkworm/(api|core|infra|node|sentry|rpc|sync)/.+\.hpp$'
WarningsAsErrors: '-*'
WarningsAsErrors: '*'
Checks: >
abseil-*,
-abseil-string-find-str-contains,
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/compiler_warnings.cmake)

if(SILKWORM_CLANG_TIDY)
find_program(CLANG_TIDY clang-tidy REQUIRED)
set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY};-warnings-as-errors=*")
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY};-warnings-as-errors=*")
set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY}")
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY}")
endif()

# Silkworm itself
Expand Down

0 comments on commit 1b72a0f

Please sign in to comment.