From 569ae4fca2811c6d974fefc26db49d49a8105685 Mon Sep 17 00:00:00 2001 From: Joe Lawrence Date: Thu, 10 Oct 2024 14:08:51 -0400 Subject: [PATCH] kpatch-build: set C language standard to gnu11 Add -std=gnu11 to CFLAGS for kpatch-build tooling. This aligns with the kernel build and avoids confusion when older tooling may default to earlier versions. Closes: #1416 ("C99 code vs. gcc defaults?") Signed-off-by: Joe Lawrence --- kpatch-build/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch-build/Makefile b/kpatch-build/Makefile index bebf3cd96..1ea9c50f9 100644 --- a/kpatch-build/Makefile +++ b/kpatch-build/Makefile @@ -1,6 +1,6 @@ include ../Makefile.inc -CFLAGS += -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare \ +CFLAGS += -std=gnu11 -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare \ -Wconversion -Wno-sign-conversion -g -Werror LDLIBS = -lelf