diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-13 16:20:53 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-13 16:20:53 -0700 |
commit | 7b63db9adf687e360a1e348aabbbc16265104fc2 (patch) | |
tree | 7efef9564a909653537710837ce68339985e4ff9 | |
parent | d35c1ce67641e9b6ab2c329570a8270b5c73d255 (diff) | |
download | xorg-lib-libXmu-7b63db9adf687e360a1e348aabbbc16265104fc2.tar.gz |
Clear some more -Wdiscarded-qualifiers warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/EditresCom.c | 6 | ||||
-rw-r--r-- | src/StrToShap.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/EditresCom.c b/src/EditresCom.c index 2303833..531384f 100644 --- a/src/EditresCom.c +++ b/src/EditresCom.c @@ -2083,7 +2083,7 @@ _XEditresGetStringValues(Widget w, Arg *warg, int numargs) XtResource *res = NULL; long value; Cardinal i; - char *string = ""; + const char *string = ""; Arg args[1]; XrmValue to, from; @@ -2155,7 +2155,7 @@ _XEditresGetStringValues(Widget w, Arg *warg, int numargs) fprintf(stderr, "_XEditresGetStringValues: bad size %d\n", res->resource_size); string = "bad size"; - *(char **)(warg->value) = string; + *(char **)(warg->value) = (char *) string; XtFree((char *)res_list); return; } @@ -2208,6 +2208,6 @@ _XEditresGetStringValues(Widget w, Arg *warg, int numargs) if (string == NULL) string = ""; - *(char **)(warg->value) = string; + *(char **)(warg->value) = (char *) string; XtFree((char *)res_list); } diff --git a/src/StrToShap.c b/src/StrToShap.c index 0773404..de93342 100644 --- a/src/StrToShap.c +++ b/src/StrToShap.c @@ -78,7 +78,7 @@ Boolean XmuCvtShapeStyleToString(Display *dpy, XrmValue *args, Cardinal *num_args, XrmValue *fromVal, XrmValue *toVal, XtPointer *data) { - static char *buffer; + static const char *buffer; Cardinal size; switch (*(int *)fromVal->addr) |