git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] add DEVELOPER makefile knob to check for acknowledged warnings

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 25, 2016, 17:40 UTC
Message-ID
<xmqqd1rkpu2z.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1456389742-48052-1-git-send-email-larsxschneider@gmail.com>
Perhaps squash these two while queuing to address comments from you two?
Thanks.
 Documentation/CodingGuidelines |  3 ++-
 Makefile                       | 18 +++++++++---------
 2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines
index 1c676c2..0ddd368 100644
--- a/Documentation/CodingGuidelines
+++ b/Documentation/CodingGuidelines
@@ -173,7 +173,8 @@ For C programs:
 
  - As a Git developer we assume you have a reasonably modern compiler
    and we recommend you to enable the DEVELOPER makefile knob to
-   ensure your patch is clear of all compiler warnings we care about.
+   ensure your patch is clear of all compiler warnings we care about,
+   by e.g. "echo DEVELOPER=1 >>config.mak".
 
  - We try to support a wide range of C compilers to compile Git with,
    including old ones. That means that you should not use C99
diff --git a/Makefile b/Makefile
index 9eb4032..7dc5b88 100644
--- a/Makefile
+++ b/Makefile
@@ -381,15 +381,15 @@ ALL_LDFLAGS = $(LDFLAGS)
 STRIP ?= strip
 
 ifdef DEVELOPER
-	CFLAGS +=	-Werror \
-				-Wdeclaration-after-statement \
-				-Wno-format-zero-length \
-				-Wold-style-definition \
-				-Woverflow \
-				-Wpointer-arith \
-				-Wstrict-prototypes \
-				-Wunused \
-				-Wvla
+CFLAGS += -Werror \
+	-Wdeclaration-after-statement \
+	-Wno-format-zero-length \
+	-Wold-style-definition \
+	-Woverflow \
+	-Wpointer-arith \
+	-Wstrict-prototypes \
+	-Wunused \
+	-Wvla
 endif
 
 # Create as necessary, replace existing, make ranlib unneeded.
Previous: Michael HaggertyNext: Lars Schneider
Message 4 of 12 in “add DEVELOPER makefile knob to check for acknowledged warnings”
  1. add DEVELOPER makefile knob to check for acknowledged warningslarsxschneider@gmail.com, Feb 25, 2016
  2. Matthieu MoyFeb 25, 2016
  3. Michael HaggertyFeb 25, 2016
  4. Junio C HamanoFeb 25, 2016
  5. Lars SchneiderFeb 26, 2016
  6. Duy NguyenFeb 26, 2016
  7. Lars SchneiderFeb 26, 2016
  8. Duy NguyenFeb 26, 2016
  9. Lars SchneiderFeb 28, 2016
  10. Duy NguyenFeb 28, 2016
  11. Ævar Arnfjörð BjarmasonMay 2, 2017
  12. Jeff KingMay 10, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.