From 7c8793b1466395216f416292724f2b9b686ce24c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 11 Aug 2010 01:29:01 +0000 Subject: [PATCH] Code Cleanup - Fixed compiler warning on CentOS. --- src/edit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/edit.cpp b/src/edit.cpp index c92f0496d..6759bb51f 100644 --- a/src/edit.cpp +++ b/src/edit.cpp @@ -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