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
path: root/source
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2007-09-04 19:53:22 +0400
committerStephen Swaney <sswaney@centurytel.net>2007-09-04 19:53:22 +0400
commite20e3e94ffdc9e7dbd846ed24bffdc1851cd5f41 (patch)
treed5ed1c8a8c4e8a98f73424eaf9f0a847f6d12405 /source
parentee740fc601ec8972b798a6b03932324c96182b7c (diff)
more warning cleanup:
unused variables undefined variables discarded qualifiers
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/BLI_blenlib.h2
-rw-r--r--source/blender/blenlib/intern/util.c2
-rw-r--r--source/blender/python/api2_2x/Texture.c3
-rw-r--r--source/blender/src/usiblender.c2
4 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_blenlib.h b/source/blender/blenlib/BLI_blenlib.h
index 8cc148db343..c73d0212869 100644
--- a/source/blender/blenlib/BLI_blenlib.h
+++ b/source/blender/blenlib/BLI_blenlib.h
@@ -184,7 +184,7 @@ char* BLI_strdup(const char *str);
* @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
diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c
index 84261b1d00c..688503269ea 100644
--- a/source/blender/blenlib/intern/util.c
+++ b/source/blender/blenlib/intern/util.c
@@ -626,7 +626,7 @@ void BLI_dlist_reinit(DynamicList *dlist)
/*=====================================================================================*/
-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';
diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c
index 74116938df5..2f2443eef88 100644
--- a/source/blender/python/api2_2x/Texture.c
+++ b/source/blender/python/api2_2x/Texture.c
@@ -438,7 +438,10 @@ GETFUNC( getWeight1 );
GETFUNC( getWeight2 );
GETFUNC( getWeight3 );
GETFUNC( getWeight4 );
+#if 0
+/* not defined */
GETFUNC( getUsers );
+#endif
OLDSETFUNC( setDistMetric );
OLDSETFUNC( setDistNoise ); /* special case used for ".noisebasis = ... */
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index 38e54d7e456..9ab0e296149 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -528,8 +528,10 @@ int BIF_read_homefile(int from_memory)
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()));