diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-02 11:35:43 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-02 11:35:43 -0700 |
commit | 43c19175385f98894c1633ed57ec6778e17a38a6 (patch) | |
tree | 106eae499b079accde836a99283f4f8e86daf9f7 /handler.c | |
parent | 2b838dbd23f2ae2a3ff479003b13e03563624009 (diff) |
Clear 208 out of 210 -Wdiscarded-qualifiers warnings from gcc 7.3
Depends on building with a libXt version that defines String as a
const char * if _CONST_X_STRING is defined.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'handler.c')
-rw-r--r-- | handler.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -42,7 +42,7 @@ in this Software without prior written authorization from The Open Group. /* * Local function definitions. */ -static char * GetResourceName ( ResourceBoxInfo * res_box ); +static String GetResourceName ( ResourceBoxInfo * res_box ); static void _AppendResourceString ( Widget w, XtPointer res_box_ptr, XtPointer filename_ptr ); static void _SetResourcesFile ( Widget w, XtPointer junk, @@ -369,11 +369,11 @@ AnyChosen(Widget w, XtPointer any_info_ptr, XtPointer state_ptr) */ -static char * +static String GetResourceName(ResourceBoxInfo *res_box) { XawListReturnStruct * list_info; - char * result; + String result; list_info = XawListShowCurrent(res_box->norm_list); if ((list_info->list_index == XAW_LIST_NONE) && |