[wwwdocs] Document Waddress in GCC 4.2

Gerald Pfeifer gerald@pfeifer.com
Sat Mar 31 21:27:00 GMT 2007

On Sat, 31 Mar 2007, Manuel López-Ibáñez wrote:
> The following patch documents the option -Waddress new in GCC 4.2

Looks good, thanks!

> This is my first wwwdocs patch. Is it OK? Does wwdocs patches need a
> changelog? How does commit work in this case?

Yes.  No, a formal changelog is not required, a short description as
part of the CVS commit is fine.  Just go ahead and issue `cvs commit`,
as for the regular codebase.


PS: I have one comment, not on the patch but on warnings.  For the
following input

  struct C {
    int f() { return 1; }

  int f(C &c) {
    return ( 1 == c.f );

we currently issue

  In function 'int f(C&)':
  6: error: invalid use of member (did you forget the '&' ?)

In such a case, that is, for member functions, isn't adding the missing
() more likely than adding &?  Would you like me to create a Bugzilla for

More information about the Gcc-patches mailing list