From b122d6d8435a8fea5689de82e90e07b76e1b4eb2 Mon Sep 17 00:00:00 2001 From: David Turner Date: Fri, 4 Jan 2002 09:47:30 +0000 Subject: [PATCH] remove compiler warnings and a typo in builds/unix/ftsystem.c --- ChangeLog | 9 +++++++++ builds/unix/ftsystem.c | 4 ++-- src/base/ftobjs.c | 1 + src/base/ftoutln.c | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75ec6e636..ca1e72e94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2002-01-04 David Turner + + * 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 * 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 048eb4fd1..d31c6d697 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 2543e82a4..132c9ffab 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -18,6 +18,7 @@ #include #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 68a22de26..9f455b795 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];