Mark Veltzer <[EMAIL PROTECTED]> writes:

> > If i am not mistaken - this in not so in ANSI C [i might be mistaken...
> > the ritchie&ker. book is not so clear about this point]

It gives a warning about shadowing. I don't know what the standard
says about it. For all I know, it may be implementation-dependent or 
undefined. Don't do it.

> > how compliant is gcc with ansi?

Very.

> 1. info gcc will give you *** hundreds *** of pages documenting the
>    compiler.

This is by far the best gcc-related advice you'll ever see.

> 2. gcc is much more standards compliant than any compiler I have ever seen.
> 3. check out the -ansi flag to gcc.
> 4. check out the -std flag to gcc.

But most of all - the -pedantic flag. Look all of them up in info.

> 5. I recommend you do even more and pass compilation with the -Wall -Werror 
> flags.

-Werror will of cours turn the warning into an error.

In any case, I strongly suggest you avoid things like this in your
code.

-- 
Oleg Goldshmidt | [EMAIL PROTECTED]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to