summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-16 10:42:15 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-16 10:42:15 -0700
commitd946324dae78f15ffe63f1e129eb4cb35a7116b8 (patch)
treec1178e1851e7dc107fac8c8bf477cfcd27129d2e /Makefile.am
parent9fdbf13e82163a69acf218ae5850b33fd5a0ff91 (diff)
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 46 out of 68 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index cea0d30..32b2987 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,7 +22,8 @@
SUBDIRS = man
bin_PROGRAMS = xfd
-AM_CPPFLAGS = -DXRENDER -D_BSD_SOURCE -DLOCALEDIR=\"$(LOCALEDIR)\"
+AM_CPPFLAGS = -DXRENDER -D_BSD_SOURCE -DLOCALEDIR=\"$(LOCALEDIR)\" \
+ -D_CONST_X_STRING
AM_CFLAGS = $(XFD_CFLAGS) $(CWARNFLAGS)
xfd_LDADD = $(XFD_LIBS)