This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc bugfix
- To: hjl at gnu dot org
- Subject: gcc bugfix
- From: Milus Janos <johans at hades dot corvex dot hu>
- Date: Fri, 14 Nov 1997 14:52:10 +0100 (CET)
Hello
I made a little bugfix in c-decl.c file. It has no effect on the
code generated by gcc, it just fixes 2 switches: pedantic and
pedantic-errors. I don't know where to send this stuff but I found your
e-mail address in ChangeLog. If I send it to the wrong address please
forward it to the right place. Thank you.
Regards
Janos Milus
johans@mail.corvex.hu
1654,1655c1654,1660
< && !TREE_PUBLIC (newdecl))
< warning_with_decl (newdecl, "static declaration for `%s' follows non-static");
---
> && !TREE_PUBLIC (newdecl)) {
> if (pedantic) {
> pedwarn_with_decl (newdecl, "static declaration for `%s' follows non-static");
> } else {
> warning_with_decl (newdecl, "static declaration for `%s' follows non-static");
> }
> }
--
H.J. Lu (hjl@gnu.ai.mit.edu)