aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2021-06-18 18:20:30 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2021-06-21 15:34:49 +1000
commit72d09e2682a41589b46b8cdd4c393b8ed47ac266 (patch)
tree720154fa05436271e6ef480781326f4c3027c3ed /Makefile
parentb587787ef38802e43972e1b7a36a8358ae25db86 (diff)
downloaddtc-72d09e2682a41589b46b8cdd4c393b8ed47ac266.zip
dtc-72d09e2682a41589b46b8cdd4c393b8ed47ac266.tar.gz
dtc-72d09e2682a41589b46b8cdd4c393b8ed47ac266.tar.bz2
Makefile: add -Wsign-compare to warning options
Now that all signedness comparison warnings in the source tree have been fixed, let's enable the warning option, to avoid them creeping in again. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Message-Id: <20210618172030.9684-6-andre.przywara@arm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ea8c659..ee77115 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ CONFIG_LOCALVERSION =
ASSUME_MASK ?= 0
CPPFLAGS = -I libfdt -I . -DFDT_ASSUME_MASK=$(ASSUME_MASK)
-WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
+WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs -Wsign-compare \
-Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow
CFLAGS = -g -Os $(SHAREDLIB_CFLAGS) -Werror $(WARNINGS) $(EXTRA_CFLAGS)