Add #ifdef HB_USE_ATEXIT to fix -Wunused-function warnings
This commit is contained in:
parent
365c03fc2b
commit
fb85d618f5
|
@ -235,7 +235,7 @@ struct hb_language_item_t {
|
||||||
static hb_language_item_t *langs;
|
static hb_language_item_t *langs;
|
||||||
|
|
||||||
#ifdef HB_USE_ATEXIT
|
#ifdef HB_USE_ATEXIT
|
||||||
static inline
|
static
|
||||||
void free_langs (void)
|
void free_langs (void)
|
||||||
{
|
{
|
||||||
while (langs) {
|
while (langs) {
|
||||||
|
|
|
@ -467,11 +467,13 @@ hb_ft_font_create_referenced (FT_Face ft_face)
|
||||||
|
|
||||||
static FT_Library ft_library;
|
static FT_Library ft_library;
|
||||||
|
|
||||||
static inline
|
#ifdef HB_USE_ATEXIT
|
||||||
|
static
|
||||||
void free_ft_library (void)
|
void free_ft_library (void)
|
||||||
{
|
{
|
||||||
FT_Done_FreeType (ft_library);
|
FT_Done_FreeType (ft_library);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static FT_Library
|
static FT_Library
|
||||||
get_ft_library (void)
|
get_ft_library (void)
|
||||||
|
|
|
@ -279,11 +279,13 @@ hb_feature_to_string (hb_feature_t *feature,
|
||||||
|
|
||||||
static const char **static_shaper_list;
|
static const char **static_shaper_list;
|
||||||
|
|
||||||
static inline
|
#ifdef HB_USE_ATEXIT
|
||||||
|
static
|
||||||
void free_static_shaper_list (void)
|
void free_static_shaper_list (void)
|
||||||
{
|
{
|
||||||
free (static_shaper_list);
|
free (static_shaper_list);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* hb_shape_list_shapers:
|
* hb_shape_list_shapers:
|
||||||
|
|
|
@ -40,12 +40,14 @@ static const hb_shaper_pair_t all_shapers[] = {
|
||||||
|
|
||||||
static const hb_shaper_pair_t *static_shapers;
|
static const hb_shaper_pair_t *static_shapers;
|
||||||
|
|
||||||
static inline
|
#ifdef HB_USE_ATEXIT
|
||||||
|
static
|
||||||
void free_static_shapers (void)
|
void free_static_shapers (void)
|
||||||
{
|
{
|
||||||
if (unlikely (static_shapers != all_shapers))
|
if (unlikely (static_shapers != all_shapers))
|
||||||
free ((void *) static_shapers);
|
free ((void *) static_shapers);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
const hb_shaper_pair_t *
|
const hb_shaper_pair_t *
|
||||||
_hb_shapers_get (void)
|
_hb_shapers_get (void)
|
||||||
|
|
Loading…
Reference in New Issue