[Mesa-dev] [PATCH 0/6] glsl: Add support for switch statements

Keith Packard keithp at keithp.com
Sat Jun 18 00:29:32 PDT 2011


On Fri, 17 Jun 2011 17:43:14 -0700, Dan McCabe <zen3d.linux at gmail.com> wrote:

>     		break; // implicit exit from loop at end of switch
>     	} while (true);

Seems like this could just be

        } while (false);

as I don't see any way the loop could go around more than once.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110618/bc9c0444/attachment-0001.pgp>


More information about the mesa-dev mailing list