]> git.ipfire.org Git - thirdparty/git.git/commit
Makefile: drop -Wno-universal-initializer from SP_EXTRA_FLAGS
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Thu, 18 Jul 2024 01:12:19 +0000 (02:12 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jul 2024 14:01:38 +0000 (07:01 -0700)
commitf78e2dd88a366875acb40352c80283929ebd8ab4
treea12d2a2fb64670fd4cdc0bf774701603e632d247
parent1c4a234a1cc13426854d3027ccaa3244835a6d1b
Makefile: drop -Wno-universal-initializer from SP_EXTRA_FLAGS

Commit 1c96642326 ("sparse: allow '{ 0 }' to be used without warnings",
2020-05-22) added -Wno-universal-initializer to the SP_EXTRA_FLAGS in
order to suppress potential sparse warnings from using '{0}' as an
aggregate initializer. At that time, the default was for sparse to
issue warnings (i.e. the default was -Wuniversal-initializer) if such
an initializer was used to initialize an aggregate whose first member
was a pointer type. However, this default was changed just a few days
later to -Wno-universal-initializer (first released in sparse v0.6.2)
and has been so in all subsequent release versions of sparse.  Thus,
including -Wno-universal-initializer in the SP_EXTRA_FLAGS variable is
redundant.

Remove the unnecessary warning flag from SP_EXTRA_FLAGS, essentially
reverting commit 1c96642326.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile