summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-09 15:04:53 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-06-09 15:04:53 -0700
commit8ef7efe5863ecf6d578900e8ca7398fc10cd566a (patch)
tree38b4d5058e31424d7df7f2a774c567f18144d605
parent683d3c0cf8c86fb6626e9e85fc0bb99a27833280 (diff)
Use _CONST_X_STRING to make libXt declare String as const char *
Clears up 31 of 95 gcc -Wdiscarded-qualifiers warnings from gcc 7.3 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 36d9956..3b24cd5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,6 +23,7 @@ SUBDIRS = man
bin_PROGRAMS = xclock
AM_CFLAGS = $(CWARNFLAGS) $(XCLOCK_CFLAGS)
+AM_CPPFLAGS = -D_CONST_X_STRING
xclock_LDADD = $(XCLOCK_LIBS)
xclock_SOURCES = \