From f4fe5a4a7f71aba25fc8db2612684c55244c5ec2 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 20 Dec 2009 17:56:22 +0100 Subject: [PATCH] Fix compiler warning. Reported by Sean. * src/base/ftdbgmem.c [!FT_DEBUG_MEMORY]: ANSI C doesn't like empty source files; however, some compilers warn about an unused variable declaration. This is now replaced with a typedef. --- ChangeLog | 9 +++++++++ src/base/ftdbgmem.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a0a9d9af..9a5235a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-12-20 Werner Lemberg + + Fix compiler warning. + Reported by Sean. + + * src/base/ftdbgmem.c [!FT_DEBUG_MEMORY]: ANSI C doesn't like empty + source files; however, some compilers warn about an unused variable + declaration. This is now replaced with a typedef. + 2009-12-18 Werner Lemberg Fix Savannah bug #28320. diff --git a/src/base/ftdbgmem.c b/src/base/ftdbgmem.c index 677f2420..160269d1 100644 --- a/src/base/ftdbgmem.c +++ b/src/base/ftdbgmem.c @@ -989,7 +989,7 @@ #else /* !FT_DEBUG_MEMORY */ /* ANSI C doesn't like empty source files */ - static const FT_Byte _debug_mem_dummy = 0; + typedef int _debug_mem_dummy; #endif /* !FT_DEBUG_MEMORY */