[PATCH:libxt] Fix missing const qualifier.

Julien Cristau jcristau at debian.org
Thu Nov 25 11:10:53 PST 2010


On Thu, Nov 25, 2010 at 18:54:55 +0100, Cyril Brulebois wrote:

> In libX11's c8701115, atom names argument to XInternAtoms were marked as
> const.
> 
> This fixes the build with CFLAGS="-Wall -Werror":
> |   CC     Selection.lo
> | cc1: warnings being treated as errors
> | Selection.c: In function ‘GetPropList’:
> | Selection.c:191: error: passing argument 2 of ‘XInternAtoms’ from incompatible pointer type
> | /home/kibi/xorg-build/include/X11/Xlib.h:1549: note: expected ‘const char **’ but argument is of type ‘char **’
> 
> Signed-off-by: Cyril Brulebois <kibi at debian.org>
> ---
>  src/Selection.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
Does this introduce a warning with old libX11?

Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101125/fc999e65/attachment-0001.pgp>


More information about the xorg-devel mailing list