Permalink
Browse files

Convert compilation warnings into errors, add compiler flag tests

  • Loading branch information...
turboscholz committed Apr 15, 2017
1 parent eb0e114 commit 2ecd24547341618085cce43c8a9cb06f60b78d08
@@ -1,5 +1,9 @@
ACLOCAL_AMFLAGS = -I m4

AM_CXXFLAGS = $(WARN_CXXFLAGS)

AM_LDFLAGS = $(WARN_LDFLAGS)

SUBDIRS = libgcmd src plugins po pixmaps doc data tests

distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper
@@ -13,20 +13,16 @@ AC_USE_SYSTEM_EXTENSIONS

GLIB_GSETTINGS

AX_IS_RELEASE([minor-version])
AX_COMPILER_FLAGS
AX_COMPILER_FLAGS_CXXFLAGS
AX_CXX_COMPILE_STDCXX_11

AC_PROG_CC
AC_PROG_CXX
AM_PROG_LEX
LT_INIT

AX_CXX_COMPILE_STDCXX_11

dnl add -Wall to CFLAGS when using gcc
CC_WARNINGS=
if test "x$GCC" = "xyes"; then
CC_WARNINGS="-Wall"
fi
AC_SUBST(CC_WARNINGS)

dnl ===================
dnl Gettext stuff
dnl ===================
@@ -1,7 +1,9 @@
## Process this file with automake to produce Makefile.in

AM_CXXFLAGS = $(WARN_CXXFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS)

AM_CPPFLAGS = \
$(CC_WARNINGS) \
$(GNOMEUI_CFLAGS) \
$(GNOMEVFS_CFLAGS)

@@ -1,7 +1,9 @@
## Process this file with automake to produce Makefile.in

AM_CXXFLAGS = $(WARN_CXXFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS)

AM_CPPFLAGS = \
$(CC_WARNINGS) \
-I$(top_srcdir) \
$(GNOMEUI_CFLAGS) \
$(GNOMEVFS_CFLAGS)
@@ -1,7 +1,9 @@
## Process this file with automake to produce Makefile.in

AM_CXXFLAGS = $(WARN_CXXFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS)

AM_CPPFLAGS = \
$(CC_WARNINGS) \
-I$(top_srcdir) \
$(GNOMEUI_CFLAGS) \
$(GNOMEVFS_CFLAGS)
@@ -2,8 +2,10 @@

SUBDIRS = dialogs tags intviewer

AM_CXXFLAGS = $(WARN_CXXFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS)

AM_CPPFLAGS = \
$(CC_WARNINGS) \
-I$(top_srcdir) \
$(GNOMEUI_CFLAGS) \
$(GNOMEVFS_CFLAGS) \
@@ -2,8 +2,10 @@

noinst_LIBRARIES = libgcmd-dialogs.a

AM_CXXFLAGS = $(WARN_CXXFLAGS) -Wno-error=missing-declarations -Wno-missing-declarations
AM_LDFLAGS = $(WARN_LDFLAGS)

AM_CPPFLAGS = \
$(CC_WARNINGS) \
-I$(top_srcdir) \
-I$(srcdir)/.. \
$(GNOMEUI_CFLAGS) \
@@ -1,7 +1,9 @@
## Process this file with automake to produce Makefile.in

AM_CXXFLAGS = $(WARN_CXXFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS)

AM_CPPFLAGS = \
$(CC_WARNINGS) \
-I$(top_srcdir) \
-I$(srcdir)/.. \
$(GLIB_CFLAGS) \
@@ -2,8 +2,10 @@

noinst_LIBRARIES = libgcmd-tags.a

AM_CXXFLAGS = $(WARN_CXXFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS)

AM_CPPFLAGS = \
$(CC_WARNINGS) \
-I$(top_srcdir) \
-I$(srcdir)/.. \
$(GNOMEUI_CFLAGS) \
@@ -1,7 +1,9 @@
## Process this file with automake to produce Makefile.in

AM_CXXFLAGS = $(WARN_CXXFLAGS)
AM_LDFLAGS = $(WARN_LDFLAGS)

AM_CPPFLAGS = \
$(CC_WARNINGS) \
$(GLIB_CFLAGS) \
$(GOBJECT_CFLAGS) \
$(GTK_CFLAGS) \

0 comments on commit 2ecd245

Please sign in to comment.