From af3e08de98ba89d090243ef217636678f7a42831 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 8 Jun 2019 18:30:19 -0700 Subject: Pass -D_CONST_X_STRING to make libXt declare String as const char * Clears up 10 of the 20 gcc -Wdiscarded-qualifiers warnings in the listres build Signed-off-by: Alan Coopersmith --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index bbf1e5b..9018116 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,8 @@ SUBDIRS = man bin_PROGRAMS = listres -AM_CFLAGS = $(CWARNFLAGS) $(LISTRES_CFLAGS) -D_BSD_SOURCE +AM_CFLAGS = $(CWARNFLAGS) $(LISTRES_CFLAGS) +AM_CPPFLAGS = -D_CONST_X_STRING -D_BSD_SOURCE listres_LDADD = $(LISTRES_LIBS) listres_SOURCES = \ -- cgit v1.2.3