Move -Wcast-align to hb.hh

pull/1550/head
Behdad Esfahbod 6 years ago
parent 8874eef8ff
commit 868b0c0c2e
  1. 3
      configure.ac
  2. 4
      src/hb.hh

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

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

Loading…
Cancel
Save