diff options
author | Ramsay Jones <ramsay@ramsayjones.plus.com> | 2018-03-30 23:22:05 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-30 15:26:32 -0700 |
commit | 41639fe4e555c5bf70dbbcba3f07db2672eb396e (patch) | |
tree | 15dfffa81ced32c9b23b4f05b6a723ce9ac9ee32 /Documentation/git-cherry.txt | |
parent | f1f2817a4fdf6c20b3edd732f8658298c4306253 (diff) | |
download | git-jm/mem-pool.tar.gz |
SQUASH??? fast-import: fix a sparse 'NULL pointer' warningjm/mem-pool
Commit a8dfa11562 ("fast-import: introduce mem_pool type", 2018-03-26)
introduces a 'mem_pool' type, along with a file-local global symbol
('fi_mem_poll') which is initialised in its declaration. This causes
sparse to issue a warning, thus:
SP fast-import.c
fast-import.c:301:40: warning: Using plain integer as NULL pointer
In order to suppress the warning, replace the '0' used to initialise the
'mp_block' field (of type 'struct mp_block *') with NULL.
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-cherry.txt')
0 files changed, 0 insertions, 0 deletions