diff --git a/boards/Makefile.include.cortexm_common b/boards/Makefile.include.cortexm_common
index cd6bf0d560ddada27b8a2295ceee67229426f494..7b3e61f9d4638359f71ad2210f249ead9ebb09a4 100644
--- a/boards/Makefile.include.cortexm_common
+++ b/boards/Makefile.include.cortexm_common
@@ -9,9 +9,9 @@ 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_DBG   ?= -ggdb -g3
 export CFLAGS_OPT   ?= -Os
 export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_STYLE) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)