summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2003-06-17 22:50:09 +0000
committerWerner Lemberg <wl@gnu.org>2003-06-17 22:50:09 +0000
commit7ee7894a8227775f500d586d5b771c316eab7260 (patch)
tree70a7fe8383d9ccdf77c84b7bf22a29d5d1b367f8
parente847caa318fe90fb5d909a3a535094db597d2514 (diff)
downloadfreetype2-7ee7894a8227775f500d586d5b771c316eab7260.tar.gz
* builds/compiler/gcc.mk, builds/compiler/gcc-dev.mk (CFLAGS):
Add -fno-strict-aliasing to get rid of zillion warnings from gcc version 3.3.
-rw-r--r--ChangeLog6
-rw-r--r--builds/compiler/gcc-dev.mk1
-rw-r--r--builds/compiler/gcc.mk2
-rw-r--r--include/freetype/internal/ftmemory.h6
4 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index eeb3a10d3..0da6e75fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-15 Werner Lemberg <wl@gnu.org>
+
+ * builds/compiler/gcc.mk, builds/compiler/gcc-dev.mk (CFLAGS):
+ Add -fno-strict-aliasing to get rid of zillion warnings from gcc
+ version 3.3.
+
2003-06-14 Werner Lemberg <wl@gnu.org>
* include/freetype/ftglyph.h (ft_glyph_bbox_unscaled,
diff --git a/builds/compiler/gcc-dev.mk b/builds/compiler/gcc-dev.mk
index c52f79f96..15879f85b 100644
--- a/builds/compiler/gcc-dev.mk
+++ b/builds/compiler/gcc-dev.mk
@@ -64,6 +64,7 @@ T := -o$(space)
#
ifndef CFLAGS
CFLAGS := -c -g -O0 \
+ -fno-strict-aliasing \
-Wall \
-W \
-Wundef \
diff --git a/builds/compiler/gcc.mk b/builds/compiler/gcc.mk
index 83ee981c5..d51f642d0 100644
--- a/builds/compiler/gcc.mk
+++ b/builds/compiler/gcc.mk
@@ -62,7 +62,7 @@ T := -o$(space)
# ANSI compliance.
#
ifndef CFLAGS
- CFLAGS := -c -g -O6 -Wall
+ CFLAGS := -c -g -O6 -Wall -fno-strict-aliasing
endif
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
diff --git a/include/freetype/internal/ftmemory.h b/include/freetype/internal/ftmemory.h
index 5e418f2f9..8da5fadc3 100644
--- a/include/freetype/internal/ftmemory.h
+++ b/include/freetype/internal/ftmemory.h
@@ -141,7 +141,7 @@ FT_BEGIN_HEADER
FT_Realloc( FT_Memory memory,
FT_Long current,
FT_Long size,
- void** P );
+ void* *P );
/*************************************************************************/
@@ -160,13 +160,13 @@ FT_BEGIN_HEADER
/* allocated block. It is always set to NULL on exit. */
/* */
/* <Note> */
- /* If P or *P are NULL, this function should return successfully. */
+ /* If P or *P is NULL, this function should return successfully. */
/* This is a strong convention within all of FreeType and its */
/* drivers. */
/* */
FT_BASE( void )
FT_Free( FT_Memory memory,
- void** P );
+ void* *P );
#define FT_MEM_SET( dest, byte, count ) ft_memset( dest, byte, count )