[virglrenderer-devel] [PATCH v2 19/21] test_virgl_transfer.c: Fix warnings
Gert Wollny
gert.wollny at collabora.com
Tue Jun 5 20:11:16 UTC 2018
test_virgl_transfer.c: In function »virgl_test_transfer_1d«:
test_virgl_transfer.c:302:19: warning: comparison between signed
and unsigned integer expressions [-Wsign-
compare]
for (i = 0; i < sizeof(data); i++)
^
test_virgl_transfer.c:313:19: warning: comparison between signed
and unsigned integer expressions [-Wsign-
compare]
for (i = 0; i < sizeof(data); i++) {
v2: Correct language of warning messages
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
tests/test_virgl_transfer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_virgl_transfer.c b/tests/test_virgl_transfer.c
index f1fd275..2bd2cc7 100644
--- a/tests/test_virgl_transfer.c
+++ b/tests/test_virgl_transfer.c
@@ -285,7 +285,8 @@ START_TEST(virgl_test_transfer_1d)
unsigned char data[50*4];
struct iovec iov = { .iov_base = data, .iov_len = sizeof(data) };
int niovs = 1;
- int ret, i;
+ int ret;
+ unsigned i;
struct virgl_box box;
/* init and create simple 2D resource */
--
2.16.4
More information about the virglrenderer-devel
mailing list