summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-06-02 20:35:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-06-02 20:35:04 (GMT)
commit202a2b8e71708825a1bba3c8775206d58e422511 (patch)
tree1e0ec2d3394c749a58467efead9665dae4a0f6b2 /Makefile
parent1ab0dfde2c379673ebbc32031a4b8c1458156686 (diff)
parent1c966423263cf77bb3fd2d87df4537d31853b58f (diff)
downloadgit-202a2b8e71708825a1bba3c8775206d58e422511.zip
git-202a2b8e71708825a1bba3c8775206d58e422511.tar.gz
git-202a2b8e71708825a1bba3c8775206d58e422511.tar.bz2
Merge branch 'lo/sparse-universal-zero-init'
We've adopted a convention that any on-stack structure can be initialized to have zero values in all fields with "= { 0 }", even when the first field happens to be a pointer, but sparse complained that a null pointer should be spelled NULL for a long time. Start using -Wno-universal-initializer option to squelch it. * lo/sparse-universal-zero-init: sparse: allow '{ 0 }' to be used without warnings
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 90aa329..372139f 100644
--- a/Makefile
+++ b/Makefile
@@ -1186,7 +1186,7 @@ PTHREAD_CFLAGS =
# For the 'sparse' target
SPARSE_FLAGS ?=
-SP_EXTRA_FLAGS =
+SP_EXTRA_FLAGS = -Wno-universal-initializer
# For the 'coccicheck' target; setting SPATCH_BATCH_SIZE higher will
# usually result in less CPU usage at the cost of higher peak memory.