mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 18:21:24 +02:00
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>
This commit is contained in:
parent
7518252968
commit
ff556bd983
|
|
@ -23,6 +23,7 @@ include lib/libvfio.mk
|
|||
|
||||
CFLAGS += -I$(top_srcdir)/tools/include
|
||||
CFLAGS += -MD
|
||||
CFLAGS += -Wall -Werror
|
||||
CFLAGS += $(EXTRA_CFLAGS)
|
||||
|
||||
LDFLAGS += -pthread
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user