diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-13 16:11:14 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-13 16:11:14 -0700 |
commit | d35c1ce67641e9b6ab2c329570a8270b5c73d255 (patch) | |
tree | 1324d743bdef4004965df79d55e777f9ff1e5217 /src/WidgetNode.c | |
parent | 1d85b2960cd4bf761cc359db61f2727f19b1560c (diff) | |
download | xorg-lib-libXmu-d35c1ce67641e9b6ab2c329570a8270b5c73d255.tar.gz |
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 11 out of 58 -Wdiscarded-qualifiers warnings from gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/WidgetNode.c')
-rw-r--r-- | src/WidgetNode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WidgetNode.c b/src/WidgetNode.c index 5c4fcc8..7a91723 100644 --- a/src/WidgetNode.c +++ b/src/WidgetNode.c @@ -46,7 +46,7 @@ in this Software without prior written authorization from The Open Group. static char *binsearch(char*, char*, int, int, int (*__compar)(_Xconst void*, _Xconst void*)); static int compare_resource_entries(_Xconst void *a, _Xconst void *b); -static XmuWidgetNode *find_resource(XmuWidgetNode*, char*, Bool); +static XmuWidgetNode *find_resource(XmuWidgetNode*, _Xconst char*, Bool); static void mark_resource_owner(XmuWidgetNode*); /* * Implementation @@ -92,7 +92,7 @@ compare_resource_entries(register _Xconst void *a, static XmuWidgetNode * -find_resource(XmuWidgetNode *node, char *name, Bool cons) +find_resource(XmuWidgetNode *node, _Xconst char *name, Bool cons) { register XmuWidgetNode *sup; XtResource res; |