[Bf-blender-cvs] [d608b98145b] master: Cleanup: quite missing-variable-declarations warnings

Campbell Barton noreply at git.blender.org
Tue Jan 11 08:16:25 CET 2022


Commit: d608b98145b4b012efd6cf615a64c00d610b772f
Author: Campbell Barton
Date:   Tue Jan 11 18:14:53 2022 +1100
Branches: master
https://developer.blender.org/rBd608b98145b4b012efd6cf615a64c00d610b772f

Cleanup: quite missing-variable-declarations warnings

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

M	source/blender/blenkernel/intern/action.c
M	source/blender/editors/io/io_obj.c
M	source/blender/io/wavefront_obj/IO_wavefront_obj.h

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

diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c
index 764c043f5ed..fde42304185 100644
--- a/source/blender/blenkernel/intern/action.c
+++ b/source/blender/blenkernel/intern/action.c
@@ -307,7 +307,7 @@ static void action_asset_pre_save(void *asset_ptr, struct AssetMetaData *asset_d
   BKE_asset_metadata_idprop_ensure(asset_data, action_type);
 }
 
-AssetTypeInfo AssetType_AC = {
+static AssetTypeInfo AssetType_AC = {
     /* pre_save_fn */ action_asset_pre_save,
 };
 
diff --git a/source/blender/editors/io/io_obj.c b/source/blender/editors/io/io_obj.c
index 746aabf87cf..2bc2a832d20 100644
--- a/source/blender/editors/io/io_obj.c
+++ b/source/blender/editors/io/io_obj.c
@@ -46,7 +46,7 @@
 #include "IO_wavefront_obj.h"
 #include "io_obj.h"
 
-const EnumPropertyItem io_obj_transform_axis_forward[] = {
+static const EnumPropertyItem io_obj_transform_axis_forward[] = {
     {OBJ_AXIS_X_FORWARD, "X_FORWARD", 0, "X", "Positive X axis"},
     {OBJ_AXIS_Y_FORWARD, "Y_FORWARD", 0, "Y", "Positive Y axis"},
     {OBJ_AXIS_Z_FORWARD, "Z_FORWARD", 0, "Z", "Positive Z axis"},
@@ -55,7 +55,7 @@ const EnumPropertyItem io_obj_transform_axis_forward[] = {
     {OBJ_AXIS_NEGATIVE_Z_FORWARD, "NEGATIVE_Z_FORWARD", 0, "-Z (Default)", "Negative Z axis"},
     {0, NULL, 0, NULL, NULL}};
 
-const EnumPropertyItem io_obj_transform_axis_up[] = {
+static const EnumPropertyItem io_obj_transform_axis_up[] = {
     {OBJ_AXIS_X_UP, "X_UP", 0, "X", "Positive X axis"},
     {OBJ_AXIS_Y_UP, "Y_UP", 0, "Y (Default)", "Positive Y axis"},
     {OBJ_AXIS_Z_UP, "Z_UP", 0, "Z", "Positive Z axis"},
@@ -64,7 +64,7 @@ const EnumPropertyItem io_obj_transform_axis_up[] = {
     {OBJ_AXIS_NEGATIVE_Z_UP, "NEGATIVE_Z_UP", 0, "-Z", "Negative Z axis"},
     {0, NULL, 0, NULL, NULL}};
 
-const EnumPropertyItem io_obj_export_evaluation_mode[] = {
+static const EnumPropertyItem io_obj_export_evaluation_mode[] = {
     {DAG_EVAL_RENDER, "DAG_EVAL_RENDER", 0, "Render", "Export objects as they appear in render"},
     {DAG_EVAL_VIEWPORT,
      "DAG_EVAL_VIEWPORT",
diff --git a/source/blender/io/wavefront_obj/IO_wavefront_obj.h b/source/blender/io/wavefront_obj/IO_wavefront_obj.h
index 25687fd957c..684eb3eda41 100644
--- a/source/blender/io/wavefront_obj/IO_wavefront_obj.h
+++ b/source/blender/io/wavefront_obj/IO_wavefront_obj.h
@@ -46,7 +46,7 @@ typedef enum {
   OBJ_AXIS_NEGATIVE_Z_FORWARD = 5,
 } eTransformAxisForward;
 
-const int TOTAL_AXES = 3;
+static const int TOTAL_AXES = 3;
 
 struct OBJExportParams {
   /** Full path to the destination .OBJ file. */



More information about the Bf-blender-cvs mailing list