filelist.c - culled some compiler warnings.
authorJoshua Leung <aligorith@gmail.com>
Mon, 17 Sep 2007 05:16:34 +0000 (05:16 +0000)
committerJoshua Leung <aligorith@gmail.com>
Mon, 17 Sep 2007 05:16:34 +0000 (05:16 +0000)
Elubie, could you check to see if any of these cause problems?

source/blender/src/filelist.c

index 95bce704d3c70df12be32770a090acd41ddfff7d..fbf514ce02d4628c29a9fa378eab2e6535e8af15 100644 (file)
@@ -265,9 +265,7 @@ static int compare_extension(const void *a1, const void *a2) {
 
 void BIF_filelist_filter(FileList* filelist)
 {
-       int num_files = 0;
        int num_filtered = 0;
-       struct direntry *old_filelist;
        int i, j;
 
        if (!filelist->filelist)
@@ -561,7 +559,7 @@ int BIF_filelist_find(struct FileList* filelist, char *file)
        int fidx = -1;
        
        if (!filelist->fidx) 
-               return;
+               return fidx;
 
        
        for (i = 0; i < filelist->numfiles; ++i) {