From: Raghavendra Rao Ananta Date: Tue, 5 May 2026 21:28:31 +0000 (+0000) Subject: vfio: selftests: Add -Wall and -Werror to the Makefile X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff556bd98348896ba4bca1c34a9dc02f64f3d4b5;p=thirdparty%2Flinux.git vfio: selftests: Add -Wall and -Werror to the Makefile Add the compiler flags, -Wall and -Werror, to catch all the build warnings and flag them as a build error, respectively. This is to ensure that no obvious programmer errors are introduced. We can add -Wno-* flags in the future to ignore specific warnings as necesasry. Signed-off-by: Raghavendra Rao Ananta Reviewed-by: David Matlack Reviewed-by: Vipin Sharma Tested-by: David Matlack Link: https://lore.kernel.org/r/20260505212838.1698034-2-rananta@google.com Signed-off-by: Alex Williamson --- diff --git a/tools/testing/selftests/vfio/Makefile b/tools/testing/selftests/vfio/Makefile index 0a4cfd1a6c7ed..11a237f889d27 100644 --- a/tools/testing/selftests/vfio/Makefile +++ b/tools/testing/selftests/vfio/Makefile @@ -23,6 +23,7 @@ include lib/libvfio.mk CFLAGS += -I$(top_srcdir)/tools/include CFLAGS += -MD +CFLAGS += -Wall -Werror CFLAGS += $(EXTRA_CFLAGS) LDFLAGS += -pthread