[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: |
gww |
Subject: |
Re: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...;...) ; " |
Date: |
Fri, 10 Oct 2008 18:50:06 -0700 (PDT) |
>> I think, your comment proposes to remove the ";" at the end
>> of line 910.
> Um, yes, but it seems that I'm wrong.
>> It looks like very strange. So, I guessed the original intention
>> by the author was
>>
>> for ( i = 0;
>> i < num_coords && blend->normalizedcoords[i] == coords[i];
>> ++i ) { }
> 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.
So nothing should be done inside the loop. If you prefer using {} to
represent a null statement, that's fine with me. I tend to use ";" myself, but
if freetype's conventions are different I apologize.
- [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 <=
- 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, 2008/10/14
- 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