зеркало из https://github.com/microsoft/git.git
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
This commit is contained in:
Коммит
202a2b8e71
2
Makefile
2
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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче