Browse Source

COMP: Changed while(1) to for(;;) to avoid warning about constant control expression.

Brad King 20 years ago
parent
commit
c7a75e92c9

+ 1 - 1
Source/CursesDialog/cmCursesLongMessageForm.cxx

@@ -174,7 +174,7 @@ void cmCursesLongMessageForm::HandleInput()
 
   char debugMessage[128];
 
-  while(1)
+  for(;;)
     {
     int key = getch();
 

+ 1 - 1
Source/CursesDialog/cmCursesMainForm.cxx

@@ -848,7 +848,7 @@ void cmCursesMainForm::HandleInput()
 
   char debugMessage[128];
 
-  while(1)
+  for(;;)
     {
     this->UpdateStatusBar();
     this->PrintKeys();