[Bf-blender-cvs] [2bbe0c4ef43] blender2.8: Cleanup: fix compiler warnings.

Brecht Van Lommel noreply at git.blender.org
Mon Jun 11 21:36:57 CEST 2018


Commit: 2bbe0c4ef43adb7437a9318fce3d41b36f07f013
Author: Brecht Van Lommel
Date:   Mon Jun 11 21:20:43 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB2bbe0c4ef43adb7437a9318fce3d41b36f07f013

Cleanup: fix compiler warnings.

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

M	source/blender/editors/transform/transform_conversions.c
M	source/blender/gpu/intern/gpu_framebuffer.c

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

diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index 6c608a0b5e4..2f95b9a6322 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -1255,7 +1255,7 @@ static void createTransArmatureVerts(TransInfo *t)
 		bool mirror = ((arm->flag & ARM_MIRROR_EDIT) != 0);
 		int total_mirrored = 0, i;
 		int oldtot;
-		BoneInitData *bid;
+		BoneInitData *bid = NULL;
 
 		tc->data_len = 0;
 		for (ebo = edbo->first; ebo; ebo = ebo->next) {
diff --git a/source/blender/gpu/intern/gpu_framebuffer.c b/source/blender/gpu/intern/gpu_framebuffer.c
index 6e791f6ac07..889c365edca 100644
--- a/source/blender/gpu/intern/gpu_framebuffer.c
+++ b/source/blender/gpu/intern/gpu_framebuffer.c
@@ -175,7 +175,7 @@ void gpu_framebuffer_module_exit(void)
     BLI_thread_local_delete(g_currentfb);
 }
 
-static uint gpu_framebuffer_current_get()
+static uint gpu_framebuffer_current_get(void)
 {
 	return GET_UINT_FROM_POINTER(BLI_thread_local_get(g_currentfb));
 }



More information about the Bf-blender-cvs mailing list