summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-03-13 11:00:18 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-03-20 21:26:55 +0000
commitc4908fbfb34d0dfb9dc36308a271fe280593c36b (patch)
tree0c01938d95889a48956365c1e9311d3cf2d3dc55
parent8d6a06b7204726af803e3d31e92fc193088c694c (diff)
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 4 out of 24 -Wdiscarded-qualifiers warnings from gcc 7.3 (The rest come from libX11's XrmOptionDescRec defined in Xresource.h.) 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 51a792d..19d5311 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,6 +22,7 @@
SUBDIRS = man
bin_PROGRAMS = xload
+AM_CPPFLAGS = -D_CONST_X_STRING
AM_CFLAGS = $(CWARNFLAGS) $(XLOAD_CFLAGS)
xload_LDADD = $(XLOAD_LIBS)