summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-03 16:04:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-03 16:04:34 -0700
commitc3e109f0bb814f2a0e3385bdada58a52473397ac (patch)
tree91bef823c2c50a3c57b171d6d82eb136d72d3cb9
parent609dfb80abafeea1d4e757403f1cef90c87cde02 (diff)
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 57 out of 61 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index f2e0b84..9aabd63 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,6 +24,7 @@ AM_YFLAGS = -d
SUBDIRS = man
bin_PROGRAMS = xgc
+AM_CPPFLAGS = -D_CONST_X_STRING
AM_CFLAGS = $(CWARNFLAGS) $(XGC_CFLAGS) -D_BSD_SOURCE
xgc_LDADD = $(XGC_LIBS) -lm