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: Sean McBride
Subject: Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; "
Date: Tue, 14 Oct 2008 10:59:24 -0400

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...

--
____________________________________________________________
Sean McBride, B. Eng                 address@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada






reply via email to

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