From 5c4ccd121d099de74b876e61959a68421bb69fba Mon Sep 17 00:00:00 2001 From: Yunseong Kim Date: Thu, 20 Jun 2024 00:47:29 +0900 Subject: [PATCH] build: Remove -Wdeclaration-after-statement flag Remove ISO C90 forbids mixed declarations and code in C warning flag. Signed-off-by: Yunseong Kim --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c78e7201e..3664cc2b7 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ export ARCH CC AR LD RM srcdir objdir LDFLAGS COMMON_CFLAGS := -std=gnu11 -D_GNU_SOURCE $(CFLAGS) $(CPPFLAGS) COMMON_CFLAGS += -iquote $(srcdir) -iquote $(objdir) -iquote $(srcdir)/arch/$(ARCH) COMMON_CFLAGS += -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -COMMON_CFLAGS += -Wdeclaration-after-statement -Wstrict-prototypes +COMMON_CFLAGS += -Wstrict-prototypes COMMON_LDFLAGS := -ldl -pthread -Wl,-z,noexecstack $(LDFLAGS) ifeq ($(ANDROID),)