Commit 7fe38a5124a00ed262c8388488332c611cefe156

David Turner 2002-01-04T09:47:30

remove compiler warnings and a typo in builds/unix/ftsystem.c

diff --git a/ChangeLog b/ChangeLog
index 75ec6e6..ca1e72e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2002-01-04  David Turner  <david@freetype.org>
+
+	* builds/unix/ftsystem.c (FT_New_Stream): fixed typo
+	
+	* src/base/ftobjs.c: added #include FT_OUTLINE_H to get rid
+	of compiler warnings
+	
+	* src/base/ftoutln.c (FT_Outline_Check): remove compiler warning
+
 2002-01-03  Werner Lemberg  <wl@gnu.org>
 
 	* src/type1/t1objs.c (T1_Face_Init): Add cast to avoid compiler
diff --git a/builds/unix/ftsystem.c b/builds/unix/ftsystem.c
index 048eb4f..d31c6d6 100644
--- a/builds/unix/ftsystem.c
+++ b/builds/unix/ftsystem.c
@@ -230,9 +230,9 @@
     /*                                                     */
 #ifdef F_SETFD
 #ifdef FD_CLOEXEC
-    ret = fcntl( file, F_SETFD, FD_CLOEXEC );
+    (void) fcntl( file, F_SETFD, FD_CLOEXEC );
 #else
-    ret = fcntl( file, F_SETFD, 1 );
+    (void) fcntl( file, F_SETFD, 1 );
 #endif /* FD_CLOEXEC */
 #endif /* F_SETFD */
 
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 2543e82..132c9ff 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -18,6 +18,7 @@
 
 #include <ft2build.h>
 #include FT_LIST_H
+#include FT_OUTLINE_H
 #include FT_INTERNAL_OBJECTS_H
 #include FT_INTERNAL_DEBUG_H
 #include FT_INTERNAL_STREAM_H
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index 68a22de..9f455b7 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -320,6 +320,7 @@
         goto Bad;
 
       end0 = -1;
+      end  = end0;
       for ( n = 0; n < n_contours; n++ )
       {
         end = outline->contours[n];