From d946324dae78f15ffe63f1e129eb4cb35a7116b8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 16 Oct 2022 10:42:15 -0700 Subject: Use _CONST_X_STRING to make libXt declare String as const char * Clears 46 out of 68 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index cea0d30..32b2987 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,8 @@ SUBDIRS = man bin_PROGRAMS = xfd -AM_CPPFLAGS = -DXRENDER -D_BSD_SOURCE -DLOCALEDIR=\"$(LOCALEDIR)\" +AM_CPPFLAGS = -DXRENDER -D_BSD_SOURCE -DLOCALEDIR=\"$(LOCALEDIR)\" \ + -D_CONST_X_STRING AM_CFLAGS = $(XFD_CFLAGS) $(CWARNFLAGS) xfd_LDADD = $(XFD_LIBS) -- cgit v1.2.3