提交 868b0c0c 编写于 作者: B Behdad Esfahbod

Move -Wcast-align to hb.hh

上级 8874eef8
...@@ -102,9 +102,6 @@ if test "x$GCC" = "xyes"; then ...@@ -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 @@ ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册