From b081873f3bb18d1c130b2d59d0757f8fee499a2b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 8 Jun 2019 18:38:58 -0700 Subject: Pass -D_CONST_X_STRING to make libXt declare String as const char * Clears up 16 of 47 gcc -Wdiscarded-qualifiers warnings Signed-off-by: Alan Coopersmith --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 8570bf4..86e34de 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,6 +23,7 @@ SUBDIRS = man bin_PROGRAMS = oclock AM_CFLAGS = $(OCLOCK_CFLAGS) $(CWARNFLAGS) +AM_CPPFLAGS = -D_CONST_X_STRING oclock_LDADD = $(OCLOCK_LIBS) -lm oclock_SOURCES = \ -- cgit v1.2.3