summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesMainForm.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-30 15:54:04 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-30 15:54:04 (GMT)
commit86e75e0d3940fc14445c16535ce3ffb43a59492e (patch)
treef4e4c456dd16c054aad6c0b2361ce3b450eee9f5 /Source/CursesDialog/cmCursesMainForm.cxx
parentd6e0f7da0cccef416ef2e31b8c5f225d4b429f11 (diff)
downloadCMake-86e75e0d3940fc14445c16535ce3ffb43a59492e.zip
CMake-86e75e0d3940fc14445c16535ce3ffb43a59492e.tar.gz
CMake-86e75e0d3940fc14445c16535ce3ffb43a59492e.tar.bz2
Fixed warning.
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index d8ed574..fd77c85 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -384,7 +384,6 @@ void cmCursesMainForm::UpdateStatusBar()
width = cmCursesMainForm::MAX_WIDTH;
}
- int leftLen = width - helpLen;
if (curFieldLen >= width)
{
strncpy(bar, curField, width);
@@ -563,7 +562,7 @@ void cmCursesMainForm::HandleInput()
else if ( key == KEY_DOWN || key == ctrl('n') )
{
FIELD* cur = current_field(m_Form);
- unsigned int index = field_index(cur);
+ int index = field_index(cur);
if ( index == 3*m_NumberOfVisibleEntries-1 )
{
continue;
@@ -670,7 +669,7 @@ void cmCursesMainForm::HandleInput()
else if ( key == 'd' )
{
FIELD* cur = current_field(m_Form);
- unsigned int index = field_index(cur);
+ int index = field_index(cur);
// make the next or prev. current field after deletion
// each entry consists of fields: label, isnew, value