From 936827fd7152fe4d01449eeb214d828d545102f8 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 20 Feb 2017 14:36:10 +0000 Subject: Overhaul compiler warning flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use gnulib’s manywarnings module for C, and adapt it to make a C++ version. Fix resulting warnings that are not in system headers (can’t be avoided as pkg-config supplies -I flags, not -isystem flags) or non-trivial (a couple in ispell library). --- src/hspell/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hspell/Makefile.am') diff --git a/src/hspell/Makefile.am b/src/hspell/Makefile.am index 28560c3..1d11782 100644 --- a/src/hspell/Makefile.am +++ b/src/hspell/Makefile.am @@ -4,7 +4,7 @@ else target_lib = endif -AM_CPPFLAGS=-I$(top_srcdir)/src $(ENCHANT_CFLAGS) $(CC_WARN_CFLAGS) $(HSPELL_CFLAGS) -D_ENCHANT_BUILD=1 +AM_CPPFLAGS = -I$(top_srcdir) $(ISYSTEM)$(top_builddir)/lib $(ISYSTEM)$(top_srcdir)/lib -I$(top_srcdir)/src $(ENCHANT_CFLAGS) $(WARN_CFLAGS) $(HSPELL_CFLAGS) -D_ENCHANT_BUILD=1 hspell_LTLIBRARIES = $(target_lib) hspelldir= $(libdir)/enchant -- cgit v1.2.1