ac: silence a warning
authorMarek Olšák <marek.olsak@amd.com>
Wed, 4 Oct 2017 14:59:40 +0000 (16:59 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 4 Oct 2017 15:00:05 +0000 (17:00 +0200)
src/amd/common/ac_llvm_build.c

index 51fb009be8be8aa78975b2d671bb909ee236200b..46153a0c39c59c9473b56ef9c524e23844910985 100644 (file)
@@ -1048,7 +1048,7 @@ ac_build_ddxy(struct ac_llvm_context *ctx,
                                          AC_FUNC_ATTR_READNONE |
                                          AC_FUNC_ATTR_CONVERGENT);
        } else {
-               uint32_t masks[2];
+               uint32_t masks[2] = {};
 
                switch (mask) {
                case AC_TID_MASK_TOP_LEFT:
@@ -1067,6 +1067,8 @@ ac_build_ddxy(struct ac_llvm_context *ctx,
                        masks[0] = 0x80a0;
                        masks[1] = 0x80f5;
                        break;
+               default:
+                       assert(0);
                }
 
                args[0] = val;