This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

Re: c/5678: Returning a void in a void func doesn't get a warning


Synopsis: Returning a void in a void func doesn't get a warning

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Tue Apr 23 01:53:57 2002
State-Changed-Why:
    It does fall into gcc feature category.  Using -ansi -pedantic
    does indeed give the warning you wanted.
    
    As for the advantages... well, there aren't many any more.  Once upon a time we only did tail recursion elimination on
    return statements.  One can also make up post-hoc arguments 
    concerning compatibility with c++, which explicitly allows 
    this stuff to make template use easier.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5678


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