[Bf-blender-cvs] [fbb263c] depsgraph_refactor: Fix for strict compiler flags: Avoid variable declarations after code.
Lukas Tönne
noreply at git.blender.org
Wed May 7 16:02:09 CEST 2014
Commit: fbb263c55ee516dfd1222d5e7b2343aba90234eb
Author: Lukas Tönne
Date: Wed May 7 15:53:56 2014 +0200
https://developer.blender.org/rBfbb263c55ee516dfd1222d5e7b2343aba90234eb
Fix for strict compiler flags: Avoid variable declarations after code.
===================================================================
M source/blender/makesrna/intern/rna_depsgraph.c
M source/blender/makesrna/intern/rna_scene.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_depsgraph.c b/source/blender/makesrna/intern/rna_depsgraph.c
index 0df040a..cc709e0 100644
--- a/source/blender/makesrna/intern/rna_depsgraph.c
+++ b/source/blender/makesrna/intern/rna_depsgraph.c
@@ -61,9 +61,10 @@ typedef struct DepsgraphEvalDebugInfo {
static void rna_Depsgraph_debug_simulate_cb(DepsgraphEvalDebugInfo *info, const char *message)
{
char filename[FILE_MAX];
+ FILE *f;
BLI_snprintf(filename, sizeof(filename), "%s_%04d", info->filename, info->step);
- FILE *f = fopen(filename, "w");
+ f = fopen(filename, "w");
if (f == NULL)
return;
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 300fa1a..1f04510 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1553,9 +1553,10 @@ static void rna_Scene_depsgraph_debug(SceneDepsgraphDebugInfo *info, void *UNUSE
{
char filename[FILE_MAX];
char label[256];
+ FILE *f;
BLI_snprintf(filename, sizeof(filename), "%s_%04d", info->filename, info->step);
- FILE *f = fopen(filename, "w");
+ f = fopen(filename, "w");
if (f == NULL)
return;
More information about the Bf-blender-cvs
mailing list