[Bf-blender-cvs] [46285e36e97] master: Cleanup: compiler warning

Brecht Van Lommel noreply at git.blender.org
Tue Oct 1 16:15:16 CEST 2019


Commit: 46285e36e97498cca054b376de8ccaf1e53e8535
Author: Brecht Van Lommel
Date:   Mon Sep 30 16:02:42 2019 +0200
Branches: master
https://developer.blender.org/rB46285e36e97498cca054b376de8ccaf1e53e8535

Cleanup: compiler warning

===================================================================

M	source/blender/gpu/intern/gpu_buffers.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index 48f6ae87615..ed606ccb8c6 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -249,7 +249,7 @@ void GPU_pbvh_mesh_buffers_update(GPU_PBVH_Buffers *buffers,
       else {
         /* calculate normal for each polygon only once */
         uint mpoly_prev = UINT_MAX;
-        short no[3];
+        short no[3] = {0, 0, 0};
 
         for (uint i = 0; i < buffers->face_indices_len; i++) {
           const MLoopTri *lt = &buffers->looptri[buffers->face_indices[i]];



More information about the Bf-blender-cvs mailing list