瀏覽代碼

Remove 'return' statements that can never be reached

Clang -Wunreachable-code-return warns otherwise.
Sean McBride 11 年之前
父節點
當前提交
8c9c4fe1a6
共有 2 個文件被更改,包括 0 次插入2 次删除
  1. 0 1
      Source/CursesDialog/cmCursesOptionsWidget.cxx
  2. 0 1
      Source/cmSystemTools.cxx

+ 0 - 1
Source/CursesDialog/cmCursesOptionsWidget.cxx

@@ -59,7 +59,6 @@ bool cmCursesOptionsWidget::HandleInput(int& key, cmCursesMainForm*, WINDOW* w)
     {
     return false;
     }
-  return false;
 }
 
 void cmCursesOptionsWidget::AddOption(std::string const & option )

+ 0 - 1
Source/cmSystemTools.cxx

@@ -1662,7 +1662,6 @@ long copy_data(struct archive *ar, struct archive *aw)
       return (r);
       }
     }
-  return r;
 }
 
 bool extract_tar(const char* outFileName, bool verbose,