minor fixes.

Add more gcc warnings for development on UNIX.
This commit is contained in:
Werner Lemberg 2000-11-05 23:41:08 +00:00
parent 91481f8a4b
commit 8c883fb542
6 changed files with 18 additions and 8 deletions

View File

@ -61,7 +61,16 @@ T := -o$(space)
# ANSI compliance.
#
ifndef CFLAGS
CFLAGS := -c -g -O0 -Wall
CFLAGS := -c -g -O0 \
-Wall \
-W \
-Wundef \
-Wshadow \
-Wpointer-arith \
-Wwrite-strings \
-Wstrict-prototypes \
-Wredundant-decls \
-Wnested-externs
endif
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.

View File

@ -76,10 +76,10 @@
/* itself is finalized. */
/* */
/* <InOut> */
/* ext :: A typeless pointer to the extension data. */
/* ext :: A typeless pointer to the extension data. */
/* */
/* face :: A handle to the source face object the extension is */
/* associated with. */
/* face :: A handle to the source face object the extension is */
/* associated with. */
/* */
typedef void (*FT_Extension_Finalizer)( void* ext,
FT_Face face );

View File

@ -425,7 +425,8 @@
(FT_Outline_MoveTo_Func) BBox_Move_To,
(FT_Outline_LineTo_Func) BBox_Move_To,
(FT_Outline_ConicTo_Func)BBox_Conic_To,
(FT_Outline_CubicTo_Func)BBox_Cubic_To
(FT_Outline_CubicTo_Func)BBox_Cubic_To,
0, 0
};
FT_Error error;

View File

@ -65,7 +65,7 @@
/* size :: The requested size in bytes. */
/* */
/* <Return> */
/* block :: The address of newly allocated block. */
/* The address of newly allocated block. */
/* */
static
void* ft_alloc( FT_Memory memory,

View File

@ -48,7 +48,7 @@
#define FT_COMPONENT trace_t2load
/* read a CFF offset from memory */
/* read a CFF offset from memory */
static
FT_ULong t2_get_offset( FT_Byte* p,
FT_Byte off_size )

View File

@ -73,7 +73,7 @@
goto Exit;
table->max_elems = count;
table->init = 0xDEADBEEFL;
table->init = 0xDEADBEEFUL;
table->num_elems = 0;
table->block = 0;
table->capacity = 0;