summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-07 18:08:23 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-04-07 18:08:23 -0700
commita223524f5f4b62cf8bd85bd7467314629de93a9a (patch)
tree8bb8d1940eaacec09be9211a4af94c985467f483
parent85a37c5a06633022723cd44a3d8d35cd317e1c53 (diff)
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 18 out of 44 -Wdiscarded-qualifiers warnings from gcc 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 66e01ae..b9a70b6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -22,6 +22,7 @@
SUBDIRS = man
bin_PROGRAMS = xconsole
+AM_CPPFLAGS = -D_CONST_X_STRING
AM_CFLAGS = $(XCONSOLE_CFLAGS) $(CWARNFLAGS)
xconsole_LDADD = $(XCONSOLE_LIBS)