From 1619a3847594ecf6a5125d1030c8d86089dc7fda Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 5 Jun 2018 07:14:52 +0200 Subject: [PATCH] Makefile.inc: Use no-packed-not-aligned only with GCC Clang doesn't know the warning `packed-not-aligned`, so only add it when GCC is used. error: unknown warning option '-Wno-packed-not-aligned'; did you \ mean '-Wno-over-aligned'? [-Werror,-Wunknown-warning-option] Change-Id: I86ee12a12fc24a0b8b92c4a0e665103ee4c4003d Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/26879 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index 446e321313..6eacb20029 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -392,10 +392,10 @@ CFLAGS_common += -pipe -g -nostdinc -std=gnu11 CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs CFLAGS_common += -Wstrict-aliasing -Wshadow -Wdate-time -CFLAGS_common += -Wno-packed-not-aligned CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer CFLAGS_common += -ffunction-sections -fdata-sections -fno-pie ifeq ($(CONFIG_COMPILER_GCC),y) +CFLAGS_common += -Wno-packed-not-aligned CFLAGS_common += -fno-delete-null-pointer-checks # Don't add these GCC specific flags when running scan-build ifeq ($(CCC_ANALYZER_OUTPUT_FORMAT),)