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

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

From-SVN: r259679
This commit is contained in:
Jonathan Wakely 2018-04-26 14:52:15 +01:00 committed by Jonathan Wakely
parent df36a3d3be
commit 030b3bddb0
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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