diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-07-16 08:45:52 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-07-16 08:45:52 +0400 |
commit | 513dcf7b46eee6ffbb47f6046c4840730e173180 (patch) | |
tree | 742ba5baa39b7b7e34f20b8af7c0ba14379f0556 /source/blender/editors/space_file/filesel.c | |
parent | 111be5ea2aa227cc93c9fc57750e463c55056673 (diff) |
2.5 - Silencing various compiler warnings (mingw)
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index 30712ea0b07..72f97898891 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -148,7 +148,7 @@ int ED_fileselect_layout_offset(FileLayout* layout, int x, int y) int active_file; if (layout == NULL) - return NULL; + return 0; offsetx = (x)/(layout->tile_w + 2*layout->tile_border_x); offsety = (y)/(layout->tile_h + 2*layout->tile_border_y); @@ -351,7 +351,7 @@ void autocomplete_directory(struct bContext *C, char *str, void *arg_v) for(i= 0; i<nentries; ++i) { struct direntry* file = filelist_file(sfile->files, i); - char* dir = filelist_dir(sfile->files); + const char* dir = filelist_dir(sfile->files); if (file && S_ISDIR(file->type)) { BLI_make_file_string(G.sce, tmp, dir, file->relname); autocomplete_do_name(autocpl,tmp); @@ -362,4 +362,4 @@ void autocomplete_directory(struct bContext *C, char *str, void *arg_v) BLI_add_slash(str); } } -}
\ No newline at end of file +} |