From 7a04d51cb90b9a314eea117bc36fedb2bfaab516 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 1 Jun 2019 17:24:20 -0700 Subject: Pass -D_CONST_X_STRING to make libXt declare String as const char * Clears up 58 of 62 gcc -Wdiscarded-qualifiers warnings in the xcalc build Signed-off-by: Alan Coopersmith --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index b1b2abf..25eae98 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,7 @@ SUBDIRS = man bin_PROGRAMS = xcalc -AM_CFLAGS = $(XCALC_CFLAGS) $(CWARNFLAGS) +AM_CFLAGS = $(XCALC_CFLAGS) $(CWARNFLAGS) -D_CONST_X_STRING xcalc_LDADD = $(XCALC_LIBS) -lm xcalc_SOURCES = \ -- cgit v1.2.3