[Mesa-dev] [PATCH 03/25] i965: Silence signed/unsigned comparison warning

Matt Turner mattst88 at gmail.com
Fri Aug 4 17:31:35 UTC 2017


---
 src/intel/compiler/test_eu_compact.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/compiler/test_eu_compact.cpp b/src/intel/compiler/test_eu_compact.cpp
index 39e7f1a27c..1ef7e5ae7f 100644
--- a/src/intel/compiler/test_eu_compact.cpp
+++ b/src/intel/compiler/test_eu_compact.cpp
@@ -254,7 +254,7 @@ run_tests(const struct gen_device_info *devinfo)
    brw_init_compaction_tables(devinfo);
    bool fail = false;
 
-   for (int i = 0; i < ARRAY_SIZE(tests); i++) {
+   for (unsigned i = 0; i < ARRAY_SIZE(tests); i++) {
       for (int align_16 = 0; align_16 <= 1; align_16++) {
 	 struct brw_codegen *p = rzalloc(NULL, struct brw_codegen);
 	 brw_init_codegen(devinfo, p, p);
-- 
2.13.0



More information about the mesa-dev mailing list