summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-01 17:24:20 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-01 17:24:20 -0700
commit7a04d51cb90b9a314eea117bc36fedb2bfaab516 (patch)
tree04bf4410839752f6bcf207bc915b7e3e86b7deca
parent519e35d2c5649a995d39ee26e39809a3b7ffabc9 (diff)
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 <alan.coopersmith@oracle.com>
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
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 = \