Fixes some occurrences of 'variable set but not used', disables Werror for problematic items.

This commit is contained in:
Jerome Duval
2012-02-23 20:32:11 +01:00
parent 0d33f92c77
commit eb5f363978
17 changed files with 59 additions and 57 deletions
@@ -1189,13 +1189,11 @@ bfs_rename(fs_volume* _volume, fs_vnode* _oldDir, const char* oldName,
newDirectory->ID(), newName);
// update the name only when they differ
bool nameUpdated = false;
if (strcmp(oldName, newName)) {
status = inode->SetName(transaction, newName);
if (status == B_OK) {
Index index(volume);
index.UpdateName(transaction, oldName, newName, inode);
nameUpdated = true;
}
}