summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-08 18:30:19 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-08 18:30:19 -0700
commitaf3e08de98ba89d090243ef217636678f7a42831 (patch)
tree07e4f61a42cd40083ade696de934c058a25a7f40
parent3c8a9d18023e8e229953beba7618abc9d42a58fb (diff)
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 <alan.coopersmith@oracle.com>
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
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 = \