[Top][All Lists]
[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
- [ft-devel] meddlesome compiler warns against "for( ...; ...; ...) ; ", mpsuzuki, 2008/10/09
- [ft-devel] Re: meddlesome compiler warns against "for( ...; ...; ...) ; ", Werner LEMBERG, 2008/10/09
- RE: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...; ...) ; ", Graham Asher, 2008/10/09
- Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; ", Werner LEMBERG, 2008/10/09
- Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; ", mpsuzuki, 2008/10/09
- Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; ", Werner LEMBERG, 2008/10/10
- Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; ", gww, 2008/10/10
- Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; ", Werner LEMBERG, 2008/10/11
- Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; ",
Sean McBride <=
- Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; ", mpsuzuki, 2008/10/14
- Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; ", mpsuzuki, 2008/10/15
Re: [ft-devel] meddlesome compiler warns against "for( ...; ...; ...) ; ", David Turner, 2008/10/12