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 <jpoimboe@redhat.com>
Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
This commit is contained in:
Kamalesh Babulal 2020-01-20 21:58:53 +05:30
parent 866faf5861
commit 4e4a8d99da
1 changed files with 2 additions and 1 deletions

View File

@ -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