Message ID | 20180425185429.GA18065@redhat.com |
---|---|
State | New |
Headers | show |
Series | Document that -Wreturn-type is enabled by default for C++ | expand |
On Wed, Apr 25, 2018 at 8:54 PM, Jonathan Wakely <jwakely@redhat.com> wrote: > * doc/invoke.texi (-Wreturn-type): Document default status for C++. > > OK for trunk and gcc-8-branch? OK. >
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index b6784b75fa2..26c0dff28a0 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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