diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-01 19:27:15 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-01 19:27:15 -0700 |
commit | 3a2473affe1e15d6e8d252db7ec5e22fd1683978 (patch) | |
tree | 023b0349e60706cf11213e67ce09c99c975c5cd8 /Dialog.c | |
parent | 6dcc9c8064baeb2f9d853309123cd9736809a4fd (diff) |
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 169 out of 240 -Wdiscarded-qualifiers warnings from gcc 7.3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'Dialog.c')
-rw-r--r-- | Dialog.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -127,7 +127,7 @@ CreateDialog(Widget top_widget, String name, unsigned long options) } void -PopdownDialog(Dialog popup, String *answer) +PopdownDialog(Dialog popup, _XtString *answer) { if (answer) *answer = XawDialogGetValueString(popup->dialog_widget); @@ -137,7 +137,7 @@ PopdownDialog(Dialog popup, String *answer) unsigned long PopupDialog(Dialog popup, String message, String suggestion, - String *answer, XtGrabKind grab) + _XtString *answer, XtGrabKind grab) { Position popup_x, popup_y, top_x, top_y; Dimension popup_width, popup_height, top_width, top_height, border_width; |