more warning cleanup:

unused variables
undefined variables
discarded qualifiers
This commit is contained in:
Stephen Swaney 2007-09-04 15:53:22 +00:00
parent ee740fc601
commit e20e3e94ff
4 changed files with 7 additions and 2 deletions

@ -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

@ -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';

@ -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 = ... */

@ -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()));