Skip to content
Snippets Groups Projects
Unverified Commit acef97aa authored by Gaëtan Harter's avatar Gaëtan Harter Committed by GitHub
Browse files

Merge pull request #9243 from cladmi/pr/warning/missing_include_dirs

makefiles/cflags.inc.mk: add -Wmissing-include-dirs flag 
parents 4219ec92 08ff1b73
No related branches found
No related tags found
No related merge requests found
...@@ -229,7 +229,7 @@ export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-) ...@@ -229,7 +229,7 @@ export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-)
# Add standard include directories # Add standard include directories
INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
INCLUDES += -I$(RIOTCPU)/$(CPU)/include INCLUDES += -I$(RIOTCPU)/$(CPU)/include
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include INCLUDES += $(addprefix -I,$(wildcard $(RIOTBOARD)/$(BOARD)/include))
# process provided features # process provided features
-include $(RIOTBOARD)/$(BOARD)/Makefile.features -include $(RIOTBOARD)/$(BOARD)/Makefile.features
......
...@@ -60,6 +60,9 @@ CFLAGS += -fno-common ...@@ -60,6 +60,9 @@ CFLAGS += -fno-common
# Enable all default warnings # Enable all default warnings
CFLAGS += -Wall CFLAGS += -Wall
# Warn if a user-supplied include directory does not exist.
CFLAGS += -Wmissing-include-dirs
ifeq (,$(filter -DDEVELHELP,$(CFLAGS))) ifeq (,$(filter -DDEVELHELP,$(CFLAGS)))
ifneq (1,$(FORCE_ASSERTS)) ifneq (1,$(FORCE_ASSERTS))
CFLAGS += -DNDEBUG CFLAGS += -DNDEBUG
......
INCLUDES += -I$(PKGDIRBASE)/libcoap \ INCLUDES += -I$(PKGDIRBASE)/libcoap \
-I$(RIOTBASE)/sys/posix/include \ -I$(RIOTBASE)/sys/posix/include
-I$(RIOTBASE)/sys/net/include
OPENTHREAD_DIR = $(RIOTBASE)/pkg/openthread OPENTHREAD_DIR = $(RIOTBASE)/pkg/openthread
INCLUDES += -I$(OPENTHREAD_DIR)/include \ INCLUDES += -I$(OPENTHREAD_DIR)/include \
-I$(OPENTHREAD_DIR)/include/openthread \
-I$(BINDIRBASE)/pkg/$(BOARD)/openthread/output/include \ -I$(BINDIRBASE)/pkg/$(BOARD)/openthread/output/include \
-I$(BINDIRBASE)/pkg/$(BOARD)/openthread/include/openthread \ -I$(BINDIRBASE)/pkg/$(BOARD)/openthread/include/openthread \
......
...@@ -3,9 +3,6 @@ PKG_URL = https://gitlab.com/mtausig/tiny-asn1.git ...@@ -3,9 +3,6 @@ PKG_URL = https://gitlab.com/mtausig/tiny-asn1.git
PKG_VERSION = 82e3a26273900b532e33e5b377f193fa08ee7d1b PKG_VERSION = 82e3a26273900b532e33e5b377f193fa08ee7d1b
PKG_LICENSE = LGPL-3 PKG_LICENSE = LGPL-3
export TINYASN1_ROOT=$(CURDIR)
INCLUDES+=-I$(TINYASN1_ROOT)/src
.PHONY: all .PHONY: all
all: git-download all: git-download
......
...@@ -6,10 +6,6 @@ ifneq (,$(filter cbor,$(USEMODULE))) ...@@ -6,10 +6,6 @@ ifneq (,$(filter cbor,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/sys/cbor/include USEMODULE_INCLUDES += $(RIOTBASE)/sys/cbor/include
endif endif
ifneq (,$(filter crypto,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/include/crypto
endif
ifneq (,$(filter fib,$(USEMODULE))) ifneq (,$(filter fib,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/sys/posix/include USEMODULE_INCLUDES += $(RIOTBASE)/sys/posix/include
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment