[Top][All Lists]

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

Re: [Devel] Getting rid of a compiler warning

From: Werner LEMBERG
Subject: Re: [Devel] Getting rid of a compiler warning
Date: Sat, 27 Mar 2004 08:00:27 +0100 (CET)

> The warning is on the FT_ALLOC line where I am trying to allocate an
> array of Longs equal to the number of glyphs.
> I am using gcc 2.95.3.  How do I get rid of this warning?

By writing correct code.  You *must* check the result of the

  if ( !FT_ALLOC( face->root.used_glyphs, size ) )
    handle error...

There are plenty of examples in FreeType's source code.


reply via email to

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