summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-05-31 13:45:40 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-05-31 13:47:01 -0700
commit8e32cbc5f586ba7382941d355342b1f14bcc1f5e (patch)
treec6ece5fc1d027d37bb9db406fd0461d340c37b45
parent63973d9097d4f914c7637937f3af502116375d58 (diff)
Pass -D_CONST_X_STRING to make libXt declare String as const char *
Clears up 62 gcc -Wdiscarded-qualifiers warnings in the xman 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 6c9a8c9..ada8ba7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,7 +25,7 @@ bin_PROGRAMS = xman
helpdir=@HELPDIR@
dist_help_DATA = xman.help
-AM_CFLAGS = $(CWARNFLAGS) $(XMAN_CFLAGS) \
+AM_CFLAGS = $(CWARNFLAGS) $(XMAN_CFLAGS) -D_CONST_X_STRING \
-D_BSD_SOURCE -DHELPFILE=\"$(helpdir)/xman.help\"
xman_LDADD = $(XMAN_LIBS)