Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-01-11 10:14:53 +0300
committerCampbell Barton <campbell@blender.org>2022-01-11 10:16:00 +0300
commitd608b98145b4b012efd6cf615a64c00d610b772f (patch)
tree9906de5e4f7b04ca0a002ad1f8c405d6236f9232
parent9af81c2b74475d8b6d0b6d8b0ca4afbb7ec380fa (diff)
Cleanup: quite missing-variable-declarations warnings
-rw-r--r--source/blender/blenkernel/intern/action.c2
-rw-r--r--source/blender/editors/io/io_obj.c6
-rw-r--r--source/blender/io/wavefront_obj/IO_wavefront_obj.h2
3 files changed, 5 insertions, 5 deletions
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. */