Code Cleanup

- Fixed compiler warning on CentOS.
This commit is contained in:
Paul Beckingham 2010-08-11 01:29:01 +00:00
parent ae56165c80
commit 7c8793b146

View file

@ -535,7 +535,8 @@ void editFile (Task& task)
// Format the contents, T -> text, write to a file.
std::string before = formatTask (task);
chdir (location.data.c_str ());
int ignored = chdir (location.data.c_str ());
++ignored; // Keep compiler quiet.
File::write (file.str (), before);
// Determine correct editor: .taskrc:editor > $VISUAL > $EDITOR > vi