[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/14] tests: fixes test-vmstate.c compile error on msys2
From: |
Thomas Huth |
Subject: |
[PULL 03/14] tests: fixes test-vmstate.c compile error on msys2 |
Date: |
Mon, 7 Sep 2020 14:11:16 +0200 |
From: Yonggang Luo <luoyonggang@gmail.com>
../tests/test-vmstate.c: In function 'int_cmp':
../tests/test-vmstate.c:884:5: error: unknown type name 'uint'; did you mean
'uInt'?
884 | uint ua = GPOINTER_TO_UINT(a);
| ^~~~
| uInt
../tests/test-vmstate.c:885:5: error: unknown type name 'uint'; did you mean
'uInt'?
885 | uint ub = GPOINTER_TO_UINT(b);
| ^~~~
| uInt
make: *** [Makefile.ninja:5461:tests/test-vmstate.exe.p/test-vmstate.c.obj] 错误 1
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Message-Id: <20200905063813.1875-1-luoyonggang@gmail.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
tests/test-vmstate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c
index f7b3868881..f8de709a0b 100644
--- a/tests/test-vmstate.c
+++ b/tests/test-vmstate.c
@@ -881,8 +881,8 @@ static gint interval_cmp(gconstpointer a, gconstpointer b,
gpointer user_data)
/* ID comparison function */
static gint int_cmp(gconstpointer a, gconstpointer b, gpointer user_data)
{
- uint ua = GPOINTER_TO_UINT(a);
- uint ub = GPOINTER_TO_UINT(b);
+ guint ua = GPOINTER_TO_UINT(a);
+ guint ub = GPOINTER_TO_UINT(b);
return (ua > ub) - (ua < ub);
}
--
2.18.2
- [PULL 00/14] Gitlab-CI improvements and related fixes, Thomas Huth, 2020/09/07
- [PULL 01/14] tests/docker: add python3-setuptools the docker images, Thomas Huth, 2020/09/07
- [PULL 02/14] tests: handling signal on win32 properly, Thomas Huth, 2020/09/07
- [PULL 03/14] tests: fixes test-vmstate.c compile error on msys2,
Thomas Huth <=
- [PULL 05/14] tests/Makefile: test-image-locking needs CONFIG_POSIX, Thomas Huth, 2020/09/07
- [PULL 04/14] tests: Fixes building test-util-filemonitor.c on msys2/mingw, Thomas Huth, 2020/09/07
- [PULL 06/14] dockerfiles/debian-win64-cross: Download WHPX MinGW headers, Thomas Huth, 2020/09/07
- [PULL 07/14] configure: Allow automatic WHPX detection, Thomas Huth, 2020/09/07
- [PULL 08/14] stubs: Move qemu_timer_notify_cb() and remove qemu_notify_event() stub, Thomas Huth, 2020/09/07
- [PULL 10/14] gitlab-ci: Add cross-compiling build tests, Thomas Huth, 2020/09/07
- [PULL 11/14] crypto: fix build with gcrypt enabled, Thomas Huth, 2020/09/07
- [PULL 12/14] gitlab: expand test coverage for crypto builds, Thomas Huth, 2020/09/07
- [PULL 13/14] tests/qtest: do not list ahci-test twice, Thomas Huth, 2020/09/07
- [PULL 14/14] target/microblaze: Collected fixes for env->iflags, Thomas Huth, 2020/09/07