Silence unused function warnings.

Some static function declarations cause unused function warnings if
certain config options are turned off via `ftoption.h'.

* src/base/ftbase.h, src/base/ftrfork.c, src/sfnt/ttbdf.h,
src/truetype/ttgxvar.h: Add #ifdef guards around these sections.
GSoC-2017-kushal
Tor Andersson 7 years ago committed by Werner Lemberg
parent bec14f6889
commit 2f1863cfb7
  1. 10
      ChangeLog
  2. 6
      src/base/ftbase.h
  3. 2
      src/base/ftrfork.c
  4. 4
      src/sfnt/ttbdf.h
  5. 4
      src/truetype/ttgxvar.h

@ -1,3 +1,13 @@
2017-11-23 Tor Andersson <tor.andersson@artifex.com>
Silence unused function warnings.
Some static function declarations cause unused function warnings if
certain config options are turned off via `ftoption.h'.
* src/base/ftbase.h, src/base/ftrfork.c, src/sfnt/ttbdf.h,
src/truetype/ttgxvar.h: Add #ifdef guards around these sections.
2017-11-22 Ewald Hew <ewaldhew@gmail.com>
* src/psaux/psft.c (cf2_setGlyphWidth): Check format before setting.

@ -2,7 +2,7 @@
/* */
/* ftbase.h */
/* */
/* The FreeType private functions used in base module (specification). */
/* Private functions used in the `base' module (specification). */
/* */
/* Copyright 2008-2017 by */
/* David Turner, Robert Wilhelm, Werner Lemberg, and suzuki toshiya. */
@ -27,6 +27,8 @@
FT_BEGIN_HEADER
#ifdef FT_CONFIG_OPTION_MAC_FONTS
/* MacOS resource fork cannot exceed 16MB at least for Carbon code; */
/* see https://support.microsoft.com/en-us/kb/130437 */
#define FT_MAC_RFORK_MAX_LEN 0x00FFFFFFUL
@ -65,6 +67,8 @@ FT_BEGIN_HEADER
ft_raccess_rule_by_darwin_vfs( FT_Library library, FT_UInt rule_index );
#endif
#endif /* FT_CONFIG_OPTION_MAC_FONTS */
FT_END_HEADER

@ -478,7 +478,7 @@
}
#ifndef FT_MACINTOSH
#if defined( FT_CONFIG_OPTION_MAC_FONTS ) && !defined( FT_MACINTOSH )
static FT_RFork_Rule
raccess_get_rule_type_from_rule_index( FT_Library library,
FT_UInt rule_index )

@ -28,6 +28,8 @@
FT_BEGIN_HEADER
#ifdef TT_CONFIG_OPTION_BDF
FT_LOCAL( void )
tt_face_free_bdf_props( TT_Face face );
@ -37,6 +39,8 @@ FT_BEGIN_HEADER
const char* property_name,
BDF_PropertyRec *aprop );
#endif /* TT_CONFIG_OPTION_BDF */
FT_END_HEADER

@ -27,6 +27,8 @@
FT_BEGIN_HEADER
#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
/*************************************************************************/
/* */
/* <Struct> */
@ -439,6 +441,8 @@ FT_BEGIN_HEADER
FT_LOCAL( void )
tt_done_blend( TT_Face face );
#endif /* TT_CONFIG_OPTION_GX_VAR_SUPPORT */
FT_END_HEADER

Loading…
Cancel
Save