From: Nikolai Merinov Date: Wed, 13 Feb 2019 11:10:15 +0000 (+0300) Subject: Disable clang specific warnings X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f1ecce22339e24659f7e9584f37b0bc616e23eb;p=platform%2Fkernel%2Fu-boot.git Disable clang specific warnings --- diff --git a/Makefile b/Makefile index 323d6469b1..9dde25d036 100644 --- a/Makefile +++ b/Makefile @@ -256,7 +256,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ HOSTCC = cc HOSTCXX = c++ -HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ +HOSTCFLAGS = -Wall -Wno-gnu-designator -Wno-parentheses-equality -Wstrict-prototypes -O2 -fomit-frame-pointer \ $(if $(CONFIG_TOOLS_DEBUG),-g) HOSTCXXFLAGS = -O2 @@ -357,7 +357,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__ -KBUILD_CFLAGS := -Wall -Wstrict-prototypes \ +KBUILD_CFLAGS := -Wall -Wno-gnu-designator -Wno-parentheses-equality -Wstrict-prototypes \ -Wno-format-security \ -fno-builtin -ffreestanding KBUILD_AFLAGS := -D__ASSEMBLY__ diff --git a/tools/dtc/Makefile b/tools/dtc/Makefile index 962f94eba6..1dc03fbee3 100644 --- a/tools/dtc/Makefile +++ b/tools/dtc/Makefile @@ -16,7 +16,7 @@ LOCAL_VERSION = CONFIG_LOCALVERSION = CPPFLAGS = -I libfdt -I . -WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \ +WARNINGS = -Werror -Wall -Wno-gnu-designator -Wno-parentheses-equality -Wpointer-arith -Wcast-qual -Wnested-externs \ -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls CFLAGS = -g -Os -fPIC -Werror $(WARNINGS)