Skip to content

Commit

Permalink
kpatch-build: set C language standard to gnu11
Browse files Browse the repository at this point in the history
Add -std=gnu11 to CFLAGS for kpatch-build tooling.  This aligns with the
kernel building for which we try to follow and avoids confusion when
older tooling may default to earlier versions.

Closes: dynup#1416 ("C99 code vs. gcc defaults?")
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
  • Loading branch information
joe-lawrence committed Oct 10, 2024
1 parent 2f6a812 commit c9acbd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kpatch-build/Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit c9acbd0

Please sign in to comment.