Skip to content

Commit 202a2b8

Browse files
committed
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
2 parents 1ab0dfd + 1c96642 commit 202a2b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ PTHREAD_CFLAGS =
11861186

11871187
# For the 'sparse' target
11881188
SPARSE_FLAGS ?=
1189-
SP_EXTRA_FLAGS =
1189+
SP_EXTRA_FLAGS = -Wno-universal-initializer
11901190

11911191
# For the 'coccicheck' target; setting SPATCH_BATCH_SIZE higher will
11921192
# usually result in less CPU usage at the cost of higher peak memory.

0 commit comments

Comments
 (0)