[Mesa-dev] [PATCH 1/2] glsl: Use (const char *) in AST nodes rather than plain (char *).

Eric Anholt eric at anholt.net
Fri Mar 30 07:49:15 PDT 2012


On Thu, 29 Mar 2012 23:17:31 -0700, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Nothing actually relied on them being mutable, and there was at least
> one cast which discarded const qualifiers.  The next patch would have
> introduced many more.
> 
> Casting away const qualifiers should be avoided if at all possible.
> 
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120330/5a31adc7/attachment.pgp>


More information about the mesa-dev mailing list