From 3c0498d835225ed0dae563a5e684cc105c42272d Mon Sep 17 00:00:00 2001 From: Joakim Gebart <joakim.gebart@eistec.se> Date: Sat, 30 May 2015 11:13:12 +0200 Subject: [PATCH] cortexm: escalate implicit-function-declaration to error "implicit declaration of function 'blah'" is a symptom of a missing #include and should be considered an error. --- boards/Makefile.include.cortexm_common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/Makefile.include.cortexm_common b/boards/Makefile.include.cortexm_common index 9273b7e198..05c5ca7868 100644 --- a/boards/Makefile.include.cortexm_common +++ b/boards/Makefile.include.cortexm_common @@ -9,7 +9,7 @@ include $(RIOTBOARD)/Makefile.include.gnu # define build specific options export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb -mno-thumb-interwork $(CFLAGS_FPU) -export CFLAGS_STYLE = -std=gnu99 -Wall -Wstrict-prototypes +export CFLAGS_STYLE = -std=gnu99 -Wall -Wstrict-prototypes -Werror=implicit-function-declaration export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin export CFLAGS_DBG = -ggdb -g3 export CFLAGS_OPT ?= -Os -- GitLab