]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Make: catch decl-after-stmt
authorJunio C Hamano <gitster@pobox.com>
Mon, 15 Nov 2021 07:26:58 +0000 (23:26 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Nov 2021 07:26:58 +0000 (23:26 -0800)
Make

diff --git a/Make b/Make
index ea2a73040700c3b17fccfd980cea7c1f6de3ffa2..f0dd5ed29878d8f63d192659270ad716ff8168f9 100755 (executable)
--- a/Make
+++ b/Make
@@ -282,7 +282,7 @@ ${make-make} \
      $jobs \
      ETC_GITCONFIG=$prefix/etc/gitconfig \
      ${DEVELOPER:+"DEVELOPER=YesPlease"} \
-     ${O:+CFLAGS="-g -Wall $O"} \
+     ${O:+CFLAGS="-g -Wall -Wdeclaration-after-statement $O"} \
      ${tests:+"T=$tests"} \
      "$@"
 status=$?