* [PATCH] Makefile: move -Wall from CFLAGS to BASIC_CFLAGS
@ 2010-04-06 3:14 Matt McCutchen
2010-04-06 6:06 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Matt McCutchen @ 2010-04-06 3:14 UTC (permalink / raw)
To: git
-Wall cleanliness is an intended property of the codebase, so -Wall
should be on by default even if the user's CFLAGS doesn't include it
(e.g., the AC_PROG_CC configure test won't include it).
---
Thoughts? Is there a problem with -Wall being GNU-specific?
Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 7c616f8..88f9b47 100644
--- a/Makefile
+++ b/Makefile
@@ -241,7 +241,7 @@ endif
# CFLAGS and LDFLAGS are for the users to override from the command line.
-CFLAGS = -g -O2 -Wall
+CFLAGS = -g -O2
LDFLAGS =
ALL_CFLAGS = $(CFLAGS)
ALL_LDFLAGS = $(LDFLAGS)
@@ -308,7 +308,7 @@ SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__
# Those must not be GNU-specific; they are shared with perl/ which may
# be built by a different compiler. (Note that this is an artifact now
# but it still might be nice to keep that distinction.)
-BASIC_CFLAGS = -I.
+BASIC_CFLAGS = -Wall -I.
BASIC_LDFLAGS =
# Guard against environment variables
--
1.7.0.2.288.gb0894e
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Makefile: move -Wall from CFLAGS to BASIC_CFLAGS
2010-04-06 3:14 [PATCH] Makefile: move -Wall from CFLAGS to BASIC_CFLAGS Matt McCutchen
@ 2010-04-06 6:06 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2010-04-06 6:06 UTC (permalink / raw)
To: Matt McCutchen; +Cc: git
Matt McCutchen <matt@mattmccutchen.net> writes:
> -Wall cleanliness is an intended property of the codebase, so -Wall
> should be on by default even if the user's CFLAGS doesn't include it
> (e.g., the AC_PROG_CC configure test won't include it).
> ---
>
> Thoughts? Is there a problem with -Wall being GNU-specific?
I think you answered yourself very well.
> @@ -308,7 +308,7 @@ SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__
> # Those must not be GNU-specific; they are shared with perl/ which may
> # be built by a different compiler. (Note that this is an artifact now
> # but it still might be nice to keep that distinction.)
> -BASIC_CFLAGS = -I.
> +BASIC_CFLAGS = -Wall -I.
> BASIC_LDFLAGS =
It still talks about perl/ back from the days when we used to have some .xs
stuff, but the principle still should apply.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-06 6:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-06 3:14 [PATCH] Makefile: move -Wall from CFLAGS to BASIC_CFLAGS Matt McCutchen
2010-04-06 6:06 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).