freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] [PATCH] Silence a compiler warning


From: Jon Foster
Subject: [ft-devel] [PATCH] Silence a compiler warning
Date: Wed, 16 Jul 2008 16:54:13 +0100

Hi,

This pach adds a cast to silence a compiler warning that happens
if FT_CONFIG_OPTION_POSTSCRIPT_NAMES is not defined.

This patch is against FreeType 2.3.5, but it looks like this code
hasn't changed since then.

Kind regards,

Jon Foster

(P.S. Apologies for the e-mail disclaimers)


diff -u -p -r1.1.1.1 ttpost.c
--- src/sfnt/ttpost.c   13 May 2008 14:56:45 -0000      1.1.1.1
+++ src/sfnt/ttpost.c   16 Jul 2008 15:42:54 -0000
@@ -62,7 +62,7 @@
    /* table of Mac names.  Thus, it is possible to build a version of
*/
    /* FreeType without the Type 1 driver & PSNames module.
*/

-#define MAC_NAME( x )  tt_post_default_names[x]
+#define MAC_NAME( x )  ((FT_String*)tt_post_default_names[x])

   /* the 258 default Mac PS glyph names */


**********************************************************************
This email and its attachments may be confidential and are intended solely for 
the use of the individual to whom it is addressed. Any views or opinions 
expressed are solely those of the author and do not necessarily represent those 
of Cabot Communications Ltd.

If you are not the intended recipient of this email and its attachments, you 
must take no action based upon them, nor must you copy or show them to anyone.

Cabot Communications Limited
Verona House, Filwood Road, Bristol BS16 3RY, UK
+44 (0) 1179584232

Co. Registered in England number 02817269

Please contact the sender if you believe you have received this email in error.

**********************************************************************


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




reply via email to

[Prev in Thread] Current Thread [Next in Thread]