Commit 030b3bdd by Jonathan Wakely Committed by Jonathan Wakely

Document that -Wreturn-type is enabled by default for C++

	* doc/invoke.texi (-Wreturn-type): Document default status for C++.

From-SVN: r259679
parent df36a3d3
2018-04-26 Jonathan Wakely <jwakely@redhat.com>
* doc/invoke.texi (-Wreturn-type): Document default status for C++.
2018-04-26 Tom de Vries <tom@codesourcery.com>
PR target/84952
......
......@@ -4783,7 +4783,7 @@ For C++, a function without return type always produces a diagnostic
message, even when @option{-Wno-return-type} is specified. The only
exceptions are @code{main} and functions defined in system headers.
This warning is enabled by @option{-Wall}.
This warning is enabled by default for C++ and is enabled by @option{-Wall}.
@item -Wshift-count-negative
@opindex Wshift-count-negative
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment