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: Graham Asher
Subject: RE: [ft-devel] Re: meddlesome compiler warns against "for( ...; ...; ...) ; "
Date: Thu, 9 Oct 2008 16:28:10 +0100

However, the logic is correct, is it not? It looks as if the code is
checking whether all of the items in the array fulfil a condition. So it
should be fixed as originally suggested by mpsuzuki, without changing the
logic, but preventing the warning.

Graham

-----Original Message-----
From: address@hidden
[mailto:address@hidden On
Behalf Of Werner LEMBERG
Sent: 09 October 2008 13:28
To: address@hidden
Cc: address@hidden
Subject: [ft-devel] Re: meddlesome compiler warns against "for( ...;
...;...) ; "


> During the play with legacy CodeWarrior and MPW, I found
> these legacy C compilers warn the coding style like
> 
>       for ( i = 0 ; i < N ; i++ ) ;
>           ...
> 
> They guess ";" is a mistake (by the author) and
> the procedure ... is expected (by the author) to be looped.

Of course it's a mistake!  Please fix it as you prefer.


     Werner


_______________________________________________
Freetype-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/freetype-devel





reply via email to

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