diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2020-05-08 02:51:02 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-08 03:08:21 +0300 |
commit | 066b70ae977b6481b15ebccb7c5deedf23c944ed (patch) | |
tree | 1c1fd3f5aa1afe3ad94b5ecd22b8f2064d57833d /bloom.c | |
parent | 07d8ea56f2ecb64b75b92264770c0a664231ce17 (diff) |
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 'bloom.c')
-rw-r--r-- | bloom.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ define_commit_slab(bloom_filter_slab, struct bloom_filter); -struct bloom_filter_slab bloom_filters; +static struct bloom_filter_slab bloom_filters; struct pathmap_hash_entry { struct hashmap_entry entry; @@ -273,4 +273,4 @@ int bloom_filter_contains(const struct bloom_filter *filter, } return 1; -}
\ No newline at end of file +} |