freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...)


From: mpsuzuki
Subject: Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; "
Date: Wed, 15 Oct 2008 00:42:36 +0900

On Tue, 14 Oct 2008 10:59:24 -0400
"Sean McBride" <address@hidden> wrote:

>On 10/11/08 8:00 AM, Werner LEMBERG said:
>
>>> > Yes, probably, which means we've just a formatting `error'.  George?
>>> 
>>> Er, the point of the loop is to test if coords is the same as
>>> blend->normalizedcoords.  If the two arrays are the same then
>>> nothing has changed.
>>
>>I've reformatted it.  Thanks to all.
>
>I didn't look how you formatted it, but note that in C++ (which I
>realize freetype is not written in) gcc 4.2 will warn for code like this:
>
>for (i = 0; i < 10; i++);
>
>But it will not warn if you do:
>
>for (i = 0; i < 10; i++) ;
>
>or
>
>for (i = 0; i < 10; i++) {}
>
>Oddly, the warning only applies to C++ and not C.
>
>Just something to consider...

Thank you for information.

Turner has post easier-to-eye fix, I will commit within
24 hours. Sorry for my lated action. The FreeType2 tree
in my Macintosh is too messed to check an atomic test.

http://lists.nongnu.org/archive/html/freetype-devel/2008-10/msg00030.html

Regards,
mpsuzuki




reply via email to

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