[PATCH:libxt] Fix missing const qualifier.
Cyril Brulebois
kibi at debian.org
Thu Nov 25 09:54:55 PST 2010
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(-)
diff --git a/src/Selection.c b/src/Selection.c
index 1759c02..26a84ba 100644
--- a/src/Selection.c
+++ b/src/Selection.c
@@ -174,7 +174,7 @@ static PropList GetPropList(
{
PropList sarray;
Atom atoms[4];
- static char* names[] = {
+ static const char* names[] = {
"INCR",
"MULTIPLE",
"TIMESTAMP",
--
1.7.2.3
More information about the xorg-devel
mailing list