summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorRaghavendra Rao Ananta <rananta@google.com>2026-05-05 21:28:31 +0000
committerAlex Williamson <alex@shazbot.org>2026-05-20 11:54:10 -0600
commitff556bd98348896ba4bca1c34a9dc02f64f3d4b5 (patch)
tree1cd6698fdc1d269ea8f7418932df6d2b705c2191 /tools/testing
parent75182529687e204b2bd046a3f7b1c2acb5031032 (diff)
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 <rananta@google.com> Reviewed-by: David Matlack <dmatlack@google.com> Reviewed-by: Vipin Sharma <vipinsh@google.com> Tested-by: David Matlack <dmatlack@google.com> Link: https://lore.kernel.org/r/20260505212838.1698034-2-rananta@google.com Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/vfio/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/vfio/Makefile b/tools/testing/selftests/vfio/Makefile
index 0a4cfd1a6c7e..11a237f889d2 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