Commit 1fc6937f7fa3bd80edbadc1e3c69d21dd9929e74

Ben Wagner 2018-11-27T18:02:44

[cff] Fix compiler warning (#55105). * src/cff/cffparse.c (cff_parser_run): Guard label only used if CFF_CONFIG_OPTION_OLD_ENGINE is active.

diff --git a/ChangeLog b/ChangeLog
index b10dffb..ac73684 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
 2018-11-27  Ben Wagner  <bungeman@google.com>
 
-	[truetype Fix numeric overflow (#55103).
+	[cff] Fix compiler warning (#55105).
+
+	* src/cff/cffparse.c (cff_parser_run): Guard label only used if
+	CFF_CONFIG_OPTION_OLD_ENGINE is active.
+
+2018-11-27  Ben Wagner  <bungeman@google.com>
+
+	[truetype] Fix numeric overflow (#55103).
 
 	* src/truetype/ttgload.c (compute_glyph_metrics): Use `SUB_LONG'.
 
diff --git a/src/cff/cffparse.c b/src/cff/cffparse.c
index db2c774..2ad5016 100644
--- a/src/cff/cffparse.c
+++ b/src/cff/cffparse.c
@@ -1534,9 +1534,11 @@
 #endif
     return error;
 
+#ifdef CFF_CONFIG_OPTION_OLD_ENGINE
   Out_Of_Memory_Error:
     error = FT_THROW( Out_Of_Memory );
     goto Exit;
+#endif
 
   Stack_Overflow:
     error = FT_THROW( Invalid_Argument );