Skip to content

Commit 31d6e65

Browse files
committed
warning as error
Signed-off-by: Yusheng.Ma <[email protected]>
1 parent 6368af1 commit 31d6e65

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.clang-tidy

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ Checks: >
2828
performance-noexcept-move-constructor, performance-no-automatic-move,
2929
performance-type-promotion-in-math-fn
3030
31-
# produce HeaderFilterRegex from core/build-support/lint_exclusions.txt with:
32-
# echo -n '^?!('; sed -e 's/*/\.*/g' core/build-support/lint_exclusions.txt | tr '\n' '|'; echo ')$'
31+
WarningsAsErrors: '*'
3332
HeaderFilterRegex: '^(?:.*\/knowhere\/include\/.+\.h)|(?:.*\/knowhere\/src\/.+\.h)$'
3433
CheckOptions:
3534
- key: google-readability-braces-around-statements.ShortStatementLines

src/index/diskann/diskann.cc

-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ class DiskANNIndexNode : public IndexNode {
164164
namespace knowhere {
165165
namespace {
166166
static constexpr float kCacheExpansionRate = 1.2;
167-
static constexpr uint32_t kLinuxAioMaxnrLimit = 65536;
168167
static constexpr int kSearchListSizeMaxValue = 200;
169168
template <typename T>
170169
expected<T, Status>

0 commit comments

Comments
 (0)