Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2018-01-29 20:30:53 +0300
committerChristopher Haster <chaster@utexas.edu>2018-01-30 03:37:48 +0300
commit6d8e0e21d0878c1aff22d2d826fc13d8faba77db (patch)
tree9cb1e67d9ee047c4e51eb6fcb54a7b378a8e741c /Makefile
parent88f678f4c6e33e6250e102cc87f51e8a358931bb (diff)
Moved -Werror flag to CI only
The most useful part of -Werror is preventing code from being merged that has warnings. However it is annoying for users who may have different compilers with different warnings. Limiting -Werror to CI only covers the main concern about warnings without limiting users.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index bf047f1..4592a40 100644
--- a/Makefile
+++ b/Makefile
@@ -14,15 +14,15 @@ TEST := $(patsubst tests/%.sh,%,$(wildcard tests/test_*))
SHELL = /bin/bash -o pipefail
ifdef DEBUG
-CFLAGS += -O0 -g3
+override CFLAGS += -O0 -g3
else
-CFLAGS += -Os
+override CFLAGS += -Os
endif
ifdef WORD
-CFLAGS += -m$(WORD)
+override CFLAGS += -m$(WORD)
endif
-CFLAGS += -I.
-CFLAGS += -std=c99 -Wall -pedantic
+override CFLAGS += -I.
+override CFLAGS += -std=c99 -Wall -pedantic
all: $(TARGET)