Commit-ID: 44e60daf75d8a62501f853c485d923a328d8b30d Gitweb: http://git.kernel.org/tip/44e60daf75d8a62501f853c485d923a328d8b30d Author: Pekka Enberg <penberg@xxxxxxxxxx> AuthorDate: Wed, 8 Jun 2011 17:29:12 +0300 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Wed, 8 Jun 2011 17:29:12 +0300 kvm tools: Add WERROR to Makefile for disabling -Werror This patch adds a WERROR variable to Makefile that can be used as follows: make WERROR=0 to disable '-Werror' while building. This is useful while doing 'git bisect', for example. Suggested-by: Ingo Molnar <mingo@xxxxxxx> Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/Makefile | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index 84aea8c..97dce86 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/Makefile @@ -1,3 +1,7 @@ +# +# Define WERROR=0 to disable -Werror. +# + ifeq ($(strip $(V)),) E = @echo Q = @ @@ -111,7 +115,10 @@ DEFINES += -D_GNU_SOURCE KVM_INCLUDE := include CFLAGS += $(CPPFLAGS) $(DEFINES) -I$(KVM_INCLUDE) -I../../include -I../../arch/$(ARCH)/include/ -Os -g -WARNINGS += -Werror +ifneq ($(WERROR),0) + WARNINGS += -Werror +endif + WARNINGS += -Wall WARNINGS += -Wcast-align WARNINGS += -Wformat=2 -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html