title: How to get rid of this Eclipse warning?
body: <p>I have a function like the one below in Eclipse. However, because there is no return outside the while loop, Eclipse assumes that I may have a logical error (probably it can't see that the condition of the while is always true.</p>
  
  <p>Switching to a do-while won't help. Is there any way that I can get rid of this warning programmatically, i.e., not by modifying settings of Eclipse IDE.</p>
  
  <pre><code>int foo(...)
  {
      while (1) {
          ...
  
          if(...)
              return -1;
  
          ...
  
          if(...)
              return 0;
      }
  }
  </code></pre>
  
  <p>I compiled the same function in the terminal and had no warning.</p>