提交 881e1054 编写于 作者: S Simon Tooke 提交者: Behdad Esfahbod

fix various GCC function pointer warnings

上级 dc9bd29f
...@@ -173,7 +173,7 @@ _hb_debug_msg_va (const char *what, ...@@ -173,7 +173,7 @@ _hb_debug_msg_va (const char *what,
fprintf (stderr, "\n"); fprintf (stderr, "\n");
} }
template <> inline void template <> inline void HB_PRINTF_FUNC(7, 0)
_hb_debug_msg_va<0> (const char *what HB_UNUSED, _hb_debug_msg_va<0> (const char *what HB_UNUSED,
const void *obj HB_UNUSED, const void *obj HB_UNUSED,
const char *func HB_UNUSED, const char *func HB_UNUSED,
...@@ -192,7 +192,7 @@ _hb_debug_msg (const char *what, ...@@ -192,7 +192,7 @@ _hb_debug_msg (const char *what,
int level_dir, int level_dir,
const char *message, const char *message,
...) HB_PRINTF_FUNC(7, 8); ...) HB_PRINTF_FUNC(7, 8);
template <int max_level> static inline void template <int max_level> static inline void HB_PRINTF_FUNC(7, 8)
_hb_debug_msg (const char *what, _hb_debug_msg (const char *what,
const void *obj, const void *obj,
const char *func, const char *func,
...@@ -216,7 +216,7 @@ _hb_debug_msg<0> (const char *what HB_UNUSED, ...@@ -216,7 +216,7 @@ _hb_debug_msg<0> (const char *what HB_UNUSED,
int level_dir HB_UNUSED, int level_dir HB_UNUSED,
const char *message HB_UNUSED, const char *message HB_UNUSED,
...) HB_PRINTF_FUNC(7, 8); ...) HB_PRINTF_FUNC(7, 8);
template <> inline void template <> inline void HB_PRINTF_FUNC(7, 8)
_hb_debug_msg<0> (const char *what HB_UNUSED, _hb_debug_msg<0> (const char *what HB_UNUSED,
const void *obj HB_UNUSED, const void *obj HB_UNUSED,
const char *func HB_UNUSED, const char *func HB_UNUSED,
......
...@@ -53,8 +53,8 @@ struct hb_set_t ...@@ -53,8 +53,8 @@ struct hb_set_t
struct page_t struct page_t
{ {
inline void init0 (void) { memset (&v, 0, sizeof (v)); } inline void init0 (void) { memset (reinterpret_cast<char*>(&v), 0, sizeof (v)); }
inline void init1 (void) { memset (&v, 0xff, sizeof (v)); } inline void init1 (void) { memset (reinterpret_cast<char*>(&v), 0xff, sizeof (v)); }
inline unsigned int len (void) const inline unsigned int len (void) const
{ return ARRAY_LENGTH_CONST (v); } { return ARRAY_LENGTH_CONST (v); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册