From f846695df6b5d9543e12d1c8f04d9d7575df1ac6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 8 Jun 2019 19:15:34 -0700 Subject: Pass -D_CONST_X_STRING to make libXt declare String as const char * Clears up 32 of 38 gcc -Wdiscarded-qualifiers warnings Signed-off-by: Alan Coopersmith --- Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index bd9a2e6..959d138 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,6 +23,7 @@ SUBDIRS = man bin_PROGRAMS = viewres AM_CFLAGS = $(VIEWRES_CFLAGS) $(CWARNFLAGS) +AM_CPPFLAGS = -D_CONST_X_STRING viewres_LDADD = $(VIEWRES_LIBS) viewres_SOURCES = \ -- cgit v1.2.3