Add -Wcast-align
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 13 Jul 2012 15:29:31 +0000 (11:29 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 13 Jul 2012 15:29:31 +0000 (11:29 -0400)
configure.ac
src/Makefile.am

index acfc2ea..cbabf83 100644 (file)
@@ -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
index f7cf593..b981346 100644 (file)
@@ -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