mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
Fixed warning.
This commit is contained in:
parent
d6e0f7da0c
commit
86e75e0d39
@ -17,7 +17,7 @@ void onsig(int sig)
|
||||
if (cmCursesForm::CurrentForm)
|
||||
{
|
||||
endwin();
|
||||
WINDOW* w= initscr(); /* Initialization */
|
||||
initscr(); /* Initialization */
|
||||
noecho(); /* Echo off */
|
||||
cbreak(); /* nl- or cr not needed */
|
||||
keypad(stdscr,TRUE); /* Use key symbols as
|
||||
@ -63,7 +63,7 @@ int main(int argc, char** argv)
|
||||
|
||||
cmCacheManager::GetInstance()->LoadCache(cmSystemTools::GetCurrentWorkingDirectory().c_str());
|
||||
|
||||
WINDOW* w=initscr(); /* Initialization */
|
||||
initscr(); /* Initialization */
|
||||
noecho(); /* Echo off */
|
||||
cbreak(); /* nl- or cr not needed */
|
||||
keypad(stdscr,TRUE); /* Use key symbols as
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user