ref: 7fe38a5124a00ed262c8388488332c611cefe156
parent: 1a0a97938a5d816ef492f8b6de14f2c7add54ef1
author: David Turner <[email protected]>
date: Fri Jan 4 04:47:30 EST 2002
remove compiler warnings and a typo in builds/unix/ftsystem.c
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2002-01-04 David Turner <[email protected]>
+
+ * 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 <[email protected]>
* src/type1/t1objs.c (T1_Face_Init): Add cast to avoid compiler
--- 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 */
--- 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
--- 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];