From 8ef7efe5863ecf6d578900e8ca7398fc10cd566a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 9 Jun 2019 15:04:53 -0700 Subject: 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 --- Makefile.am | 1 + 1 file changed, 1 insertion(+) 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 = \ -- cgit v1.2.3