On Thu, 2003-01-23 at 12:36, Philippe M. Chiasson wrote:
> On Thu, 2003-01-23 at 12:10, Stas Bekman wrote:
> > Randy Kobes wrote:
> > > Hi,
> > >     Visual Studio (and I think some other compilers) like to
> > > have variables declared up front. This diff
> > 
> > Thanks Randy, committed.
> > 
> > I still wish to find a compiler option to prevent this in first place. I've 
> > gcc 3.2 and it happily accepts the definitions after the code segments. I 
> > can't find anything in the gcc manpage :(
> 
> #include <stdio.h>
> 
> int main() {
>         int i=0;
>         i=i;
>         int b=3;
> }
> 
> $> gcc -pedantic main.c
> main.c: In function `main':
> main.c:6: warning: ISO C89 forbids mixed declarations and code

BUT you REALLY DO NOT WANT to try and build mod_perl in pedantic ansi
mode..... 

195 warnings in mod_perl.c for example ;-) It's _really_ pedantic...

> > __________________________________________________________________
> > Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> > http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> > mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
> > http://modperlbook.org http://apache.org   http://ticketmaster.com
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to