]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'bc/require-c99'
authorJunio C Hamano <gitster@pobox.com>
Fri, 10 Dec 2021 22:35:14 +0000 (14:35 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Dec 2021 22:35:14 +0000 (14:35 -0800)
Weather balloon to break people with compilers that do not support
C99.

* bc/require-c99:
  git-compat-util: add a test balloon for C99 support

1  2 
Makefile
contrib/buildsystems/CMakeLists.txt
git-compat-util.h

diff --cc Makefile
index d56c0e4aadcfe15075db40a48dbab0688cf7cc4e,07902eb592cd94881d7b3cd8cd5dbfd817620145..ed75ed422b506ab201f646248e03ad4026a3a10f
+++ b/Makefile
@@@ -1212,12 -1218,9 +1212,12 @@@ ARFLAGS = rc
  PTHREAD_CFLAGS =
  
  # For the 'sparse' target
- SPARSE_FLAGS ?=
+ SPARSE_FLAGS ?= -std=gnu99
  SP_EXTRA_FLAGS = -Wno-universal-initializer
  
 +# For informing GIT-BUILD-OPTIONS of the SANITIZE=leak target
 +SANITIZE_LEAK =
 +
  # For the 'coccicheck' target; setting SPATCH_BATCH_SIZE higher will
  # usually result in less CPU usage at the cost of higher peak memory.
  # Setting it to 0 will feed all files in a single spatch invocation.
Simple merge
Simple merge