minor fixes. Add more gcc warnings for development on UNIX.
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
diff --git a/builds/compiler/gcc-dev.mk b/builds/compiler/gcc-dev.mk
index e26ba16..df62aad 100644
--- a/builds/compiler/gcc-dev.mk
+++ b/builds/compiler/gcc-dev.mk
@@ -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.
diff --git a/include/freetype/internal/ftextend.h b/include/freetype/internal/ftextend.h
index 32045b1..94ca4de 100644
--- a/include/freetype/internal/ftextend.h
+++ b/include/freetype/internal/ftextend.h
@@ -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 );
diff --git a/src/base/ftbbox.c b/src/base/ftbbox.c
index f26901d..cbf9d5f 100644
--- a/src/base/ftbbox.c
+++ b/src/base/ftbbox.c
@@ -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;
diff --git a/src/base/ftsystem.c b/src/base/ftsystem.c
index 8273a47..8ae15ba 100644
--- a/src/base/ftsystem.c
+++ b/src/base/ftsystem.c
@@ -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,
diff --git a/src/cff/t2load.c b/src/cff/t2load.c
index 3ab5376..d9e46de 100644
--- a/src/cff/t2load.c
+++ b/src/cff/t2load.c
@@ -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 )
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index 266b499..589cd68 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -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;