summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-01 12:12:49 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-05 14:44:27 +0000
commit2393ad0bfb1cd23a0524e7b02a0fd75aff3bf274 (patch)
treeb110604f3af7ef4b38488ea24d0028dbcc9122d7 /Makefile.inc
parent9fc96407e2279f0178faf27c3b0ae5b3f7341264 (diff)
downloadcoreboot-2393ad0bfb1cd23a0524e7b02a0fd75aff3bf274.tar.gz
coreboot-2393ad0bfb1cd23a0524e7b02a0fd75aff3bf274.tar.bz2
coreboot-2393ad0bfb1cd23a0524e7b02a0fd75aff3bf274.zip
Makefile.inc: Use 'Wold-style-definition'
Warn when a definition is using '()' instead of '(void)'. Use of ‘()’ is considered an old-style definition in C1x standards, but probably not in C2x. Change-Id: I734cfffe3e89996ab13e846cc08e13753f24f742 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70205 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index ef565c2fc98f..3eaabaf8d224 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -414,7 +414,7 @@ endif
CFLAGS_common += -pipe -g -nostdinc -std=gnu11
CFLAGS_common += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
CFLAGS_common += -Wwrite-strings -Wredundant-decls -Wno-trigraphs -Wimplicit-fallthrough
-CFLAGS_common += -Wshadow -Wdate-time -Wtype-limits -Wvla
+CFLAGS_common += -Wshadow -Wdate-time -Wtype-limits -Wvla -Wold-style-definition
CFLAGS_common += -Wdangling-else
CFLAGS_common += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
CFLAGS_common += -fstrict-aliasing -ffunction-sections -fdata-sections -fno-pie