浏览代码

Remove warning

Andy Cedilnik 23 年之前
父节点
当前提交
0b7d51d79f
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 0 1
      Source/CursesDialog/cmCursesPathWidget.cxx
  2. 1 1
      Source/cmSystemTools.cxx

+ 0 - 1
Source/CursesDialog/cmCursesPathWidget.cxx

@@ -39,7 +39,6 @@ void cmCursesPathWidget::OnType(int& key, cmCursesMainForm* fm, WINDOW* w)
 
 
 void cmCursesPathWidget::OnTab(cmCursesMainForm* fm, WINDOW* w)
 void cmCursesPathWidget::OnTab(cmCursesMainForm* fm, WINDOW* w)
 {
 {
-  std::string::size_type cc;
   if ( !this->GetString() )
   if ( !this->GetString() )
     {
     {
     return;
     return;

+ 1 - 1
Source/cmSystemTools.cxx

@@ -2275,7 +2275,7 @@ bool cmSystemTools::SimpleGlob(const std::string& glob,
     path = "/";
     path = "/";
     }
     }
 
 
-  bool res;
+  bool res = false;
   cmDirectory d;
   cmDirectory d;
   if (d.Load(path.c_str()))
   if (d.Load(path.c_str()))
     {
     {