diff options
author | Peng Hao <peng.hao2@zte.com.cn> | 2018-04-12 20:36:30 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-04-12 12:36:41 -0400 |
commit | 4e1acd7b31a03f24cc6108d37d005e6b1d48c5d3 (patch) | |
tree | fe8bc30533523f20da93519177e6b9d426f70c60 /tools | |
parent | f0f4cf5b306620282db0c59ff963012e1973e025 (diff) |
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')
-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)) | |||
14 | 14 | ||
15 | INSTALL_HDR_PATH = $(top_srcdir)/usr | 15 | INSTALL_HDR_PATH = $(top_srcdir)/usr |
16 | LINUX_HDR_PATH = $(INSTALL_HDR_PATH)/include/ | 16 | LINUX_HDR_PATH = $(INSTALL_HDR_PATH)/include/ |
17 | CFLAGS += -O2 -g -I$(LINUX_HDR_PATH) -Iinclude -I$(<D) | 17 | CFLAGS += -O2 -g -std=gnu99 -I$(LINUX_HDR_PATH) -Iinclude -I$(<D) |
18 | 18 | ||
19 | # After inclusion, $(OUTPUT) is defined and | 19 | # After inclusion, $(OUTPUT) is defined and |
20 | # $(TEST_GEN_PROGS) starts with $(OUTPUT)/ | 20 | # $(TEST_GEN_PROGS) starts with $(OUTPUT)/ |