From 571786ae9100472d699fdd26eb040aed08e079aa Mon Sep 17 00:00:00 2001 From: Maximilian Wilhelm Date: Sun, 12 Sep 2021 18:27:41 +0200 Subject: [PATCH] Makefile: Make gcc be more pendantic and bail out on warnings Signed-off-by: Maximilian Wilhelm --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 811950c..9fb6199 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,8 @@ CONFIG_FILE := /etc/network/ifupdown-ng.conf EXECUTOR_PATH := /usr/libexec/ifupdown-ng CFLAGS ?= -ggdb3 -Os -CFLAGS += -Wall -Wextra +CFLAGS += -Wall -Wextra -Werror +CFLAGS += -Wmissing-declarations -Wmissing-prototypes -Wcast-align -Wpointer-arith -Wreturn-type CFLAGS += ${LIBBSD_CFLAGS} CPPFLAGS = -I. CPPFLAGS += -DINTERFACES_FILE=\"${INTERFACES_FILE}\"