]> git.hungrycats.org Git - linux/commitdiff
Make aic7xxx -Werror conditional on make flag WARNINGS_BECOME_ERRORS
authorJames Bottomley <jejb@raven.il.steeleye.com>
Tue, 30 Dec 2003 06:22:48 +0000 (00:22 -0600)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Tue, 30 Dec 2003 06:22:48 +0000 (00:22 -0600)
This should ensure it doesn't ordinarily break the builds, but will error out if the
builder requests it to.

drivers/scsi/aic7xxx/Makefile

index 0dc6f0331bbb79422d236bcc6438c362e34d9d51..fcb15a760bb9e28f3c5809748934340515855b65 100644 (file)
@@ -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