From 4e4a8d99da1effcf81ff99b4e19a42f8e3ade6e1 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Mon, 20 Jan 2020 21:58:53 +0530 Subject: [PATCH] kpatch-build: add -Wconversion/-Wno-sign-conversion CFLAGS Add -Wconversion and -Wno-sign-conversion to CFLAGS. The first flag should catch any implicit conversions like the one seen with #1065 and the second flag suppress the warnings between signed and unsigned integers. Suggested-by: Josh Poimboeuf Signed-off-by: Kamalesh Babulal --- kpatch-build/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kpatch-build/Makefile b/kpatch-build/Makefile index 232b336..0db5643 100644 --- a/kpatch-build/Makefile +++ b/kpatch-build/Makefile @@ -1,6 +1,7 @@ include ../Makefile.inc -CFLAGS += -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -g -Werror +CFLAGS += -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare \ + -Wconversion -Wno-sign-conversion -g -Werror LDLIBS = -lelf TARGETS = create-diff-object create-klp-module create-kpatch-module