ref: 824daa5881e60b9762b2bf9d9ff3dc1f277d4a2e
parent: 917589d4bd335a8a28aed840e538e1eae33042fe
author: Graham Asher <[email protected]>
date: Thu Aug 15 08:58:21 EDT 2002
Fixed compiler warnings about unreferenced formal parameters when FT_CONFIG_OPTION_INCREMENTAL is not defined.
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -595,6 +595,10 @@
FT_Byte** pointer,
FT_ULong length )
{
+#ifndef FT_CONFIG_OPTION_INCREMENTAL
+ length; /* Prevent compiler warning about unreferenced parameter. */
+#endif
+
#ifdef FT_CONFIG_OPTION_INCREMENTAL
/* For incremental fonts get the character data using the */
/* callback function. */
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -2049,6 +2049,10 @@
CFF_FontRecDict dict;
+#ifndef FT_CONFIG_OPTION_INCREMENTAL
+ face; /* Prevent compiler warning about unreferenced parameter. */
+#endif
+
FT_ZERO( font );
font->stream = stream;