diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-13 17:21:15 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-13 17:21:15 (GMT) |
commit | 4ee923a33cf3148e42ca0102ed33345ce73a0368 (patch) | |
tree | b8ec0178ad52ba0fe650aba83f3f6a3faaff709c /Source/CursesDialog/cmCursesMainForm.cxx | |
parent | 5231ad0c7e1cafd7438789c85dad6613f38cc74f (diff) | |
download | CMake-4ee923a33cf3148e42ca0102ed33345ce73a0368.zip CMake-4ee923a33cf3148e42ca0102ed33345ce73a0368.tar.gz CMake-4ee923a33cf3148e42ca0102ed33345ce73a0368.tar.bz2 |
ENH: remove warnings
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 7f29128..6b700cc 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -407,10 +407,8 @@ void cmCursesMainForm::HandleInput() // if not end of page, next field otherwise next page else if ( key == KEY_DOWN || key == ctrl('n') ) { - int x,y; - getmaxyx(m_Window, y, x); FIELD* cur = current_field(m_Form); - int index = field_index(cur); + unsigned int index = field_index(cur); if ( index == 3*m_Entries->size()-1 ) { continue; @@ -427,8 +425,6 @@ void cmCursesMainForm::HandleInput() // if not beginning of page, previous field, otherwise previous page else if ( key == KEY_UP || key == ctrl('p') ) { - int x,y; - getmaxyx(m_Window, y, x); FIELD* cur = current_field(m_Form); int index = field_index(cur); if ( index == 2 ) @@ -470,7 +466,7 @@ void cmCursesMainForm::HandleInput() else if ( key == 'd' ) { FIELD* cur = current_field(m_Form); - int index = field_index(cur); + unsigned int index = field_index(cur); // make the next or prev. current field after deletion FIELD* nextCur; |