Move -Wcast-align to hb.hh

This commit is contained in:
Behdad Esfahbod 2019-01-17 15:08:36 -05:00
parent 8874eef8ff
commit 868b0c0c2e
2 changed files with 4 additions and 3 deletions

View File

@ -102,9 +102,6 @@ if test "x$GCC" = "xyes"; then
# by overriding CXXFLAGS.
CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
# Assorted warnings
CXXFLAGS="$CXXFLAGS -Wcast-align"
case "$host" in
*-*-mingw*)
;;

View File

@ -29,6 +29,10 @@
#ifndef HB_HH
#define HB_HH
#ifndef HB_NO_GCC_PRAGMAS
#pragma GCC diagnostic warning "-Wcast-align"
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif