diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2020-05-07 23:51:02 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-08 00:08:21 (GMT) |
commit | 066b70ae977b6481b15ebccb7c5deedf23c944ed (patch) | |
tree | 1c1fd3f5aa1afe3ad94b5ecd22b8f2064d57833d /t/helper/test-bloom.c | |
parent | 07d8ea56f2ecb64b75b92264770c0a664231ce17 (diff) | |
download | git-066b70ae977b6481b15ebccb7c5deedf23c944ed.zip git-066b70ae977b6481b15ebccb7c5deedf23c944ed.tar.gz git-066b70ae977b6481b15ebccb7c5deedf23c944ed.tar.bz2 |
bloom: fix `make sparse` warning
* We need a `final_new_line` to make our source code as text file, per
POSIX and C specification.
* `bloom_filters` should be limited to interal linkage only
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-bloom.c')
-rw-r--r-- | t/helper/test-bloom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-bloom.c b/t/helper/test-bloom.c index 77eb27a..456f5ea 100644 --- a/t/helper/test-bloom.c +++ b/t/helper/test-bloom.c @@ -3,7 +3,7 @@ #include "test-tool.h" #include "commit.h" -struct bloom_filter_settings settings = DEFAULT_BLOOM_FILTER_SETTINGS; +static struct bloom_filter_settings settings = DEFAULT_BLOOM_FILTER_SETTINGS; static void add_string_to_filter(const char *data, struct bloom_filter *filter) { struct bloom_key key; |