remove compiler warnings and a typo in builds/unix/ftsystem.c
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
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];