mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Code Cleanup
- Fixed compiler warning on CentOS.
This commit is contained in:
parent
ae56165c80
commit
7c8793b146
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue