From 3a2473affe1e15d6e8d252db7ec5e22fd1683978 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 1 Jun 2019 19:27:15 -0700 Subject: 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 --- BitmapP.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'BitmapP.h') diff --git a/BitmapP.h b/BitmapP.h index 08e4c65..2ab711e 100644 --- a/BitmapP.h +++ b/BitmapP.h @@ -119,7 +119,8 @@ typedef struct { Dimension margin, squareW, squareH, width, height; XPoint hot; int button_function[5]; - String filename, basename; + _XtString filename; + _XtString basename; /* private state */ String size; Position horizOffset, vertOffset; -- cgit v1.2.3