From 11c4ad439ef2b39a840f397a693b1ba643f52c21 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 13 Jul 2012 11:29:31 -0400 Subject: [PATCH] Add -Wcast-align --- configure.ac | 3 +++ src/Makefile.am | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index acfc2ea6c..cbabf835f 100644 --- a/configure.ac +++ b/configure.ac @@ -69,6 +69,9 @@ if test "x$GCC" = "xyes"; then # Hide inline methods CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" + # Assorted warnings + CXXFLAGS="$CXXFLAGS -Wcast-align" + case "$host" in arm-*-*) # Request byte alignment on arm diff --git a/src/Makefile.am b/src/Makefile.am index f7cf5939b..b981346db 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,7 +8,7 @@ DISTCLEANFILES = MAINTAINERCLEANFILES = DISTCHECK_CONFIGURE_FLAGS = --enable-introspection -# The following warning options are useful for debugging: -Wpadded -Wcast-align +# The following warning options are useful for debugging: -Wpadded #AM_CXXFLAGS = lib_LTLIBRARIES = libharfbuzz.la