[PATCH xrandr 1/2] xrandr: Fix string constness bugs

Alan Coopersmith alan.coopersmith at oracle.com
Fri Aug 24 22:23:32 PDT 2012

On 08/24/12 09:43 PM, Aaron Plattner wrote:
> Sufficiently new versions of GCC treat string literals as "const char *" by
> default.  This means that several places that assign, return, or initialize
> char* from a string literal generates a warning:
>   xrandr.c:54:5: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc

More information about the xorg-devel mailing list