diff options
author | Peng Hao <peng.hao2@zte.com.cn> | 2018-04-13 08:36:30 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-04-12 18:36:41 +0200 |
commit | 4e1acd7b31a03f24cc6108d37d005e6b1d48c5d3 (patch) | |
tree | fe8bc30533523f20da93519177e6b9d426f70c60 /tools/testing/selftests/kvm | |
parent | f0f4cf5b306620282db0c59ff963012e1973e025 (diff) | |
download | talos-op-linux-4e1acd7b31a03f24cc6108d37d005e6b1d48c5d3.tar.gz talos-op-linux-4e1acd7b31a03f24cc6108d37d005e6b1d48c5d3.zip |
kvm: selftests: add -std=gnu99 cflags
lib/kvm_util.c: In function ‘kvm_memcmp_hva_gva’:
lib/kvm_util.c:332:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
So add -std=gnu99 to CFLAGS
Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm')
-rw-r--r-- | tools/testing/selftests/kvm/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index dc44de904797..1da541e1ab75 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -14,7 +14,7 @@ LIBKVM += $(LIBKVM_$(UNAME_M)) INSTALL_HDR_PATH = $(top_srcdir)/usr LINUX_HDR_PATH = $(INSTALL_HDR_PATH)/include/ -CFLAGS += -O2 -g -I$(LINUX_HDR_PATH) -Iinclude -I$(<D) +CFLAGS += -O2 -g -std=gnu99 -I$(LINUX_HDR_PATH) -Iinclude -I$(<D) # After inclusion, $(OUTPUT) is defined and # $(TEST_GEN_PROGS) starts with $(OUTPUT)/ |