From 824daa5881e60b9762b2bf9d9ff3dc1f277d4a2e Mon Sep 17 00:00:00 2001 From: Graham Asher Date: Thu, 15 Aug 2002 12:58:21 +0000 Subject: [PATCH] Fixed compiler warnings about unreferenced formal parameters when FT_CONFIG_OPTION_INCREMENTAL is not defined. --- src/cff/cffgload.c | 4 ++++ src/cff/cffload.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c index a86f2185c..5ba5b80c9 100644 --- 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. */ diff --git a/src/cff/cffload.c b/src/cff/cffload.c index 9193d8e7b..4e5da877d 100644 --- 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;