[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34211] trunk/blender/source/blender/ blenkernel/BKE_pointcache.h: Silencing gcc compiler warnings about the ptcache_*_datastruct arrays

Joshua Leung aligorith at gmail.com
Mon Jan 10 00:18:49 CET 2011


Revision: 34211
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=34211
Author:   aligorith
Date:     2011-01-09 23:18:48 +0000 (Sun, 09 Jan 2011)
Log Message:
-----------
Silencing gcc compiler warnings about the ptcache_*_datastruct arrays
being "unused".

These were defined static in a header-file used in multiple places,
but appear to only be used in the filereading code. Removing the
static tags, as these don't seem right here. Perhaps the original
author here intended const instead?

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/BKE_pointcache.h

Modified: trunk/blender/source/blender/blenkernel/BKE_pointcache.h
===================================================================
--- trunk/blender/source/blender/blenkernel/BKE_pointcache.h	2011-01-09 23:16:05 UTC (rev 34210)
+++ trunk/blender/source/blender/blenkernel/BKE_pointcache.h	2011-01-09 23:18:48 UTC (rev 34211)
@@ -100,7 +100,7 @@
 	struct BoidData boids;
 } PTCacheData;
 
-static char *ptcache_datastruct[] = {
+char *ptcache_datastruct[] = {
 	"", // BPHYS_DATA_INDEX
 	"", // BPHYS_DATA_LOCATION
 	"", // BPHYS_DATA_VELOCITY
@@ -111,12 +111,12 @@
 	"BoidData" // case BPHYS_DATA_BOIDS:
 };
 
-static char *ptcache_extra_datastruct[] = {
+char *ptcache_extra_datastruct[] = {
 	"",
 	"ParticleSpring"
 };
 
-static int ptcache_extra_datasize[] = {
+int ptcache_extra_datasize[] = {
 	0,
 	sizeof(ParticleSpring)
 };




More information about the Bf-blender-cvs mailing list