[Committed] Enable -WWsequence-point for C++ and ObjC++

Joseph S. Myers jsm@polyomino.org.uk
Mon Jun 28 15:44:00 GMT 2004


On Mon, 28 Jun 2004, Andrew Pinski wrote:

> Is this patch ok for now? (I can add to option like some of the other
> warnings options on the page that it works only for C, ObjC, and C++).
> 
> Thanks,
> Andrew Pinski
> 
> ChangeLog:
> 	* doc/invoke.texi (Wsequence-point): Remove that this option
> 	only works for C.

As this removes inaccurate information, it is OK.  It still leaves the
documentation a bit misleading, as the text only refers to C and the C
standard, leaving it silent about the languages supported.  By way of
comparison, the documentation of -Wparentheses only mentions C once and is
silent that all but one of the warnings are only implemented for C, not
C++.

I think C-family options should be clearly distinguished from more general
ones, and the C-family options should all make clear which languages are
supported; but if applicable and easy, it may be more useful to make both
front ends support an option and document that state of affairs, than to
document an existing arbitrary state of affairs.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)



More information about the Gcc-patches mailing list