diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2022-12-22 21:36:43 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-01-11 10:44:34 +0100 |
commit | 92bf246130faa85b20ca8e3b6c4eda50d5825a5a (patch) | |
tree | 6b1c8d5450348916992b074e5bc18597f0be0d6a /subprojects/libvhost-user/libvhost-user-glib.h | |
parent | 18fa7f1e95e22f74f509e1b5cf759f7a19a0954d (diff) |
libvhost-user: Use unsigned int i for some for-loop iterations
The sign-compare warning also hits some of the for-loops, but it easy
fixed by just making the iterator variable unsigned int.
CC libvhost-user.o
libvhost-user.c: In function ‘vu_gpa_to_va’:
libvhost-user.c:223:19: error: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Werror=sign-compare]
223 | for (i = 0; i < dev->nregions; i++) {
| ^
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Message-Id: <decb925e1a6fb9538738d2570bda2804f888fa15.1671741278.git.marcel@holtmann.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'subprojects/libvhost-user/libvhost-user-glib.h')
0 files changed, 0 insertions, 0 deletions