[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11938] trunk/blender/source/blender: more warning cleanup:

Stephen Swaney sswaney at centurytel.net
Tue Sep 4 17:53:23 CEST 2007


Revision: 11938
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11938
Author:   stiv
Date:     2007-09-04 17:53:22 +0200 (Tue, 04 Sep 2007)

Log Message:
-----------
more warning cleanup:
unused variables
undefined variables
discarded qualifiers

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_blenlib.h
    trunk/blender/source/blender/blenlib/intern/util.c
    trunk/blender/source/blender/python/api2_2x/Texture.c
    trunk/blender/source/blender/src/usiblender.c

Modified: trunk/blender/source/blender/blenlib/BLI_blenlib.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_blenlib.h	2007-09-04 07:26:25 UTC (rev 11937)
+++ trunk/blender/source/blender/blenlib/BLI_blenlib.h	2007-09-04 15:53:22 UTC (rev 11938)
@@ -184,7 +184,7 @@
 	 * @param len The number of bytes to duplicate
 	 * @retval Returns the duplicated string
 	 */
-char* BLI_strdupn(char *str, int len);
+char* BLI_strdupn(const char *str, int len);
 
 	/**
 	 * Like strncpy but ensures dst is always

Modified: trunk/blender/source/blender/blenlib/intern/util.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/util.c	2007-09-04 07:26:25 UTC (rev 11937)
+++ trunk/blender/source/blender/blenlib/intern/util.c	2007-09-04 15:53:22 UTC (rev 11938)
@@ -626,7 +626,7 @@
 
 /*=====================================================================================*/
 
-char *BLI_strdupn(char *str, int len) {
+char *BLI_strdupn(const char *str, int len) {
 	char *n= MEM_mallocN(len+1, "strdup");
 	memcpy(n, str, len);
 	n[len]= '\0';

Modified: trunk/blender/source/blender/python/api2_2x/Texture.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Texture.c	2007-09-04 07:26:25 UTC (rev 11937)
+++ trunk/blender/source/blender/python/api2_2x/Texture.c	2007-09-04 15:53:22 UTC (rev 11938)
@@ -438,7 +438,10 @@
 GETFUNC( getWeight2 );
 GETFUNC( getWeight3 );
 GETFUNC( getWeight4 );
+#if 0
+/* not defined */
 GETFUNC( getUsers );
+#endif
 
 OLDSETFUNC( setDistMetric );
 OLDSETFUNC( setDistNoise );	/* special case used for ".noisebasis = ...  */

Modified: trunk/blender/source/blender/src/usiblender.c
===================================================================
--- trunk/blender/source/blender/src/usiblender.c	2007-09-04 07:26:25 UTC (rev 11937)
+++ trunk/blender/source/blender/src/usiblender.c	2007-09-04 15:53:22 UTC (rev 11938)
@@ -528,8 +528,10 @@
 static void get_autosave_location(char buf[FILE_MAXDIR+FILE_MAXFILE])
 {
 	char pidstr[32];
+#ifdef WIN32
 	char subdir[9];
 	char savedir[FILE_MAXDIR];
+#endif
 
 	sprintf(pidstr, "%d.blend", abs(getpid()));
 	





More information about the Bf-blender-cvs mailing list