[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48031] trunk/blender/source/blender/ editors/space_file/file_ops.c: Fix for compiling with all warnings as error (commenting out unused vars).
Bastien Montagne
montagne29 at wanadoo.fr
Mon Jun 18 14:39:24 CEST 2012
Revision: 48031
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48031
Author: mont29
Date: 2012-06-18 12:39:19 +0000 (Mon, 18 Jun 2012)
Log Message:
-----------
Fix for compiling with all warnings as error (commenting out unused vars).
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_file/file_ops.c
Modified: trunk/blender/source/blender/editors/space_file/file_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/file_ops.c 2012-06-18 12:34:19 UTC (rev 48030)
+++ trunk/blender/source/blender/editors/space_file/file_ops.c 2012-06-18 12:39:19 UTC (rev 48031)
@@ -1160,7 +1160,7 @@
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 @@
file_change_dir(C, 1);
WM_event_add_notifier(C, NC_SPACE|ND_SPACE_FILE_LIST, NULL);
- }
-
+ }
return OPERATOR_FINISHED;
}
@@ -1206,14 +1205,14 @@
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;
}
More information about the Bf-blender-cvs
mailing list