diff mbox

[blktests,v3,4/6] src/Makefile: Move -Wall from the C compilation rule to the $(CFLAGS) variable

Message ID 20180709225643.10537-5-bart.vanassche@wdc.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bart Van Assche July 9, 2018, 10:56 p.m. UTC
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
---
 src/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/src/Makefile b/src/Makefile
index 7d15d115f6df..efbf393f4c58 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -8,7 +8,7 @@  C_TARGETS := \
 
 TARGETS := $(C_TARGETS)
 
-CFLAGS := -O2
+CFLAGS := -O2 -Wall
 
 all: $(TARGETS)
 
@@ -16,6 +16,6 @@  clean:
 	rm -f $(TARGETS)
 
 $(C_TARGETS): %: %.c
-	$(CC) -Wall -o $@ $(CPPFLAGS) $(CFLAGS) $^
+	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^
 
 .PHONY: all clean