Actually there is another verbose style that is useful when debugging:<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">while ()</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  }<br>
<br></span>W<span style="font-family: courier new,monospace;"><br></span><br><div class="gmail_quote">On Mon, Jun 16, 2008 at 5:12 PM, Sean McBride <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>
<br>
Apple's newest gcc is giving warnings like:<br>
<br>
vtkOpenGLRenderWindow.cxx:458: warning: suggest a space before ';' or<br>
explicit braces around empty body in 'while' statement<br>
<br>
for code like:<br>
<br>
  while(glGetError() != GL_NO_ERROR);<br>
<br>
There are only 100 or so; I could commit fixes.  But what style of fix?<br>
Options:<br>
<br>
1)  while(glGetError() != GL_NO_ERROR) ;<br>
<br>
2)  while(glGetError() != GL_NO_ERROR) {};<br>
<br>
Of course, whitespace permutations are also possible. :)  I vote 2.<br>
<br>
Thanks,<br>
<br>
--<br>
____________________________________________________________<br>
Sean McBride, B. Eng                 <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
Rogue Research                        <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer              Montréal, Québec, Canada<br>
<br>
_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>William J. Schroeder, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a><br>
<a href="http://www.kitware.com">http://www.kitware.com</a><br>518-371-3971 (phone and fax)