[Bf-blender-cvs] [4c24e8e992c] master: Cleanup: missing-variable-declarations warning

Campbell Barton noreply at git.blender.org
Sat Sep 12 10:02:40 CEST 2020


Commit: 4c24e8e992c78d812cdfcb90e3aa648714597ae1
Author: Campbell Barton
Date:   Sat Sep 12 16:27:50 2020 +1000
Branches: master
https://developer.blender.org/rB4c24e8e992c78d812cdfcb90e3aa648714597ae1

Cleanup: missing-variable-declarations warning

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

M	source/blender/blenkernel/intern/hair.c
M	source/blender/blenkernel/intern/pointcloud.c
M	source/blender/blenlib/intern/BLI_kdopbvh.c
M	source/blender/python/intern/bpy_rna_ui.c

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

diff --git a/source/blender/blenkernel/intern/hair.c b/source/blender/blenkernel/intern/hair.c
index 72e3d355ba5..57997eaf3a1 100644
--- a/source/blender/blenkernel/intern/hair.c
+++ b/source/blender/blenkernel/intern/hair.c
@@ -49,8 +49,8 @@
 
 #include "BLO_read_write.h"
 
-const char *HAIR_ATTR_POSITION = "Position";
-const char *HAIR_ATTR_RADIUS = "Radius";
+static const char *HAIR_ATTR_POSITION = "Position";
+static const char *HAIR_ATTR_RADIUS = "Radius";
 
 /* Hair datablock */
 
diff --git a/source/blender/blenkernel/intern/pointcloud.c b/source/blender/blenkernel/intern/pointcloud.c
index 2cdc717b793..6ec305a971c 100644
--- a/source/blender/blenkernel/intern/pointcloud.c
+++ b/source/blender/blenkernel/intern/pointcloud.c
@@ -53,8 +53,8 @@
 
 static void pointcloud_random(PointCloud *pointcloud);
 
-const char *POINTCLOUD_ATTR_POSITION = "Position";
-const char *POINTCLOUD_ATTR_RADIUS = "Radius";
+static const char *POINTCLOUD_ATTR_POSITION = "Position";
+static const char *POINTCLOUD_ATTR_RADIUS = "Radius";
 
 static void pointcloud_init_data(ID *id)
 {
diff --git a/source/blender/blenlib/intern/BLI_kdopbvh.c b/source/blender/blenlib/intern/BLI_kdopbvh.c
index f030a733752..73f8c2717b0 100644
--- a/source/blender/blenlib/intern/BLI_kdopbvh.c
+++ b/source/blender/blenlib/intern/BLI_kdopbvh.c
@@ -202,7 +202,7 @@ const float bvhtree_kdop_axes[13][3] = {
 };
 
 /* Used to correct the epsilon and thus match the overlap distance. */
-const float bvhtree_kdop_axes_length[13] = {
+static const float bvhtree_kdop_axes_length[13] = {
     1.0f,
     1.0f,
     1.0f,
diff --git a/source/blender/python/intern/bpy_rna_ui.c b/source/blender/python/intern/bpy_rna_ui.c
index 9f37b8300db..27e4cb069ce 100644
--- a/source/blender/python/intern/bpy_rna_ui.c
+++ b/source/blender/python/intern/bpy_rna_ui.c
@@ -29,6 +29,7 @@
 #include "UI_interface.h"
 
 #include "bpy_rna.h"
+#include "bpy_rna_ui.h"
 
 PyDoc_STRVAR(bpy_rna_uilayout_introspect_doc,
              ".. method:: introspect()\n"



More information about the Bf-blender-cvs mailing list