forked from bartvdbraak/blender
more warning cleanup:
unused variables undefined variables discarded qualifiers
This commit is contained in:
parent
ee740fc601
commit
e20e3e94ff
@ -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()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user