foc: suppress gcc warnings of L4Re components

Ref #2405
This commit is contained in:
Stefan Kalkowski 2017-05-24 11:02:42 +02:00 committed by Christian Helmuth
parent 16be05e530
commit dd214a8b15
2 changed files with 8 additions and 1 deletions

View File

@ -43,6 +43,13 @@ PKGS := l4re-core/crtn \
L4_BUILD_DIR := $(LIB_CACHE_DIR)/syscall-foc/build
#
# Supress several warnings especially of the uclibc-minimal
#
WARNINGS += -Wno-cpp -Wno-nonnull-compare -Wno-shift-overflow \
-Wno-unused-but-set-variable -Wno-maybe-uninitialized \
-Wno-unused-value -Wno-deprecated-declarations -Wno-attributes
include $(REP_DIR)/lib/mk/l4_pkg.inc
#

View File

@ -52,6 +52,6 @@ endif
%.tag:
$(VERBOSE_MK) set -o pipefail; \
$(MAKE) $(VERBOSE_DIR) O=$(L4_BUILD_DIR) -C $(L4_PKG_DIR)/$* \
"$(L4_BUILD_OPT)" $(BUILD_OUTPUT_FILTER)
"$(L4_BUILD_OPT)" WARNINGS=$(WARNINGS) $(BUILD_OUTPUT_FILTER)
$(VERBOSE)mkdir -p $(dir $@) && touch $@