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>
This commit is contained in:
Đoàn Trần Công Danh 2020-05-08 00:51:02 +01:00 committed by Junio C Hamano
parent 07d8ea56f2
commit 066b70ae97
5 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@
define_commit_slab(bloom_filter_slab, struct bloom_filter); 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 pathmap_hash_entry {
struct hashmap_entry entry; struct hashmap_entry entry;

View File

@ -3,7 +3,7 @@
#include "test-tool.h" #include "test-tool.h"
#include "commit.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) { static void add_string_to_filter(const char *data, struct bloom_filter *filter) {
struct bloom_key key; struct bloom_key key;