From 433a3b1ff9b60f4baf7c30f2e1908b9629968a41 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 17 Oct 2019 12:31:17 +0100 Subject: Add -Werror=implicit-function-declaration Implicit function declaration is always a bug, but compilers don't turn it into an error by default for historical reasons, so add it to the default config. --- config.mk.dist | 1 + 1 file changed, 1 insertion(+) (limited to 'config.mk.dist') diff --git a/config.mk.dist b/config.mk.dist index 29d1d14..a923d7d 100644 --- a/config.mk.dist +++ b/config.mk.dist @@ -10,6 +10,7 @@ HOST_CFLAGS += -Wall -Wno-unused-function CC = $(CROSS_COMPILE)gcc CFLAGS = -std=c99 -pipe -O3 CFLAGS += -Wall -Wno-missing-braces +CFLAGS += -Werror=implicit-function-declaration # Enable debug info. HOST_CFLAGS += -g -- cgit v1.2.3