diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-06-18 16:39:19 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-06-18 16:39:19 +0400 |
commit | cc33934410979eac6fb2ea78e2e5df7df87ea906 (patch) | |
tree | b7353bafdf502b08e4828a39ef5d6fd6322d44c1 | |
parent | 35b3736b16bfb604c2eb56eee9afb1a15dbbafea (diff) |
Fix for compiling with all warnings as error (commenting out unused vars).
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 128bc3662d9..cd523b3f8a4 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -1160,7 +1160,7 @@ static int file_directory_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(ev if (!BLI_exists(sfile->params->dir)) { return WM_operator_confirm_message(C, op, "Create new directory?"); - } + } return file_directory_exec(C, op); } @@ -1193,8 +1193,7 @@ int file_directory_exec(bContext *C, wmOperator *UNUSED(unused)) file_change_dir(C, 1); WM_event_add_notifier(C, NC_SPACE|ND_SPACE_FILE_LIST, NULL); - } - + } return OPERATOR_FINISHED; } @@ -1206,14 +1205,14 @@ int file_filename_exec(bContext *C, wmOperator *UNUSED(unused)) if (sfile->params) { matched_file[0] = '\0'; if (file_select_match(sfile, sfile->params->file, matched_file)) { - int i, numfiles= filelist_numfiles(sfile->files); + /* int i, numfiles = filelist_numfiles(sfile->files); */ /* XXX UNUSED */ sfile->params->file[0] = '\0'; /* replace the pattern (or filename that the user typed in, with the first selected file of the match */ BLI_strncpy(sfile->params->file, matched_file, sizeof(sfile->params->file)); WM_event_add_notifier(C, NC_SPACE|ND_SPACE_FILE_PARAMS, NULL); } - } + } return OPERATOR_FINISHED; } |