From 0775247b867dba97ce51a766a8abed97d165ff9c Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Tue, 30 Dec 2003 00:22:48 -0600 Subject: [PATCH] Make aic7xxx -Werror conditional on make flag WARNINGS_BECOME_ERRORS This should ensure it doesn't ordinarily break the builds, but will error out if the builder requests it to. --- drivers/scsi/aic7xxx/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/aic7xxx/Makefile b/drivers/scsi/aic7xxx/Makefile index 0dc6f0331bbb7..fcb15a760bb9e 100644 --- a/drivers/scsi/aic7xxx/Makefile +++ b/drivers/scsi/aic7xxx/Makefile @@ -33,7 +33,10 @@ aic79xx-y += aic79xx_osm.o \ aic79xx_proc.o \ aic79xx_osm_pci.o -EXTRA_CFLAGS += -Idrivers/scsi -Werror +EXTRA_CFLAGS += -Idrivers/scsi +ifdef WARNINGS_BECOME_ERRORS +EXTRA_CFLAGS += -Werror +endif #EXTRA_CFLAGS += -g # Files generated that shall be removed upon make clean -- 2.53.0