[PATCH:libXft] Add const attributes to fix gcc -Wwrite-strings warnings

Alan Coopersmith alan.coopersmith at oracle.com
Wed Sep 28 09:12:23 PDT 2011

On 09/26/11 03:56 PM, Aaron Plattner wrote:
> XftDefaultParseBool could probably use a const too.

Included that one too.

> Should these be _Xconst rather than plain old const?  Does anyone #define
> _Xconst to override the definition in Xfuncproto.h?

I don't think that's needed for internal function calls, but only in external
API headers that someone may want to include from software being compiled
with an ancient compiler, and even that's probably not needed much these days.

	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System

More information about the xorg-devel mailing list