title: While loop always true CCS
body: <p>I'm using CCS compiler and for this piece of code getting a warning that condition is always true. This is a code for PIC16F877, so when the input is 1 , it should break out of loop. Am I missing something here?</p>
  
  <pre><code>int read_keypad()
  {
     int value=0;
     while(1)
     {
       UpButton=0;                  // In case of bad Input
       DownButton=0;
       RightButton=0;
       LeftButton=0;
       EnterButton=0;
  
       output_high(sat1); 
       if (input(sut1)) 
       {    
         value=1;
         while(input(sut1));
         break;
       }
  }
  </code></pre>