mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
df36a3d3be
commit
030b3bddb0
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue