diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-16 10:42:15 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-16 10:42:15 -0700 |
commit | d946324dae78f15ffe63f1e129eb4cb35a7116b8 (patch) | |
tree | c1178e1851e7dc107fac8c8bf477cfcd27129d2e | |
parent | 9fdbf13e82163a69acf218ae5850b33fd5a0ff91 (diff) |
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 46 out of 68 -Wdiscarded-qualifiers warnings from gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index cea0d30..32b2987 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,7 +22,8 @@ SUBDIRS = man bin_PROGRAMS = xfd -AM_CPPFLAGS = -DXRENDER -D_BSD_SOURCE -DLOCALEDIR=\"$(LOCALEDIR)\" +AM_CPPFLAGS = -DXRENDER -D_BSD_SOURCE -DLOCALEDIR=\"$(LOCALEDIR)\" \ + -D_CONST_X_STRING AM_CFLAGS = $(XFD_CFLAGS) $(CWARNFLAGS) xfd_LDADD = $(XFD_LIBS) |