This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc bugfix


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]