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

OK for trunk and gcc-8-branch?


commit 20357a8ded851a3376b7e8978c77e7c56b1a273e
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Wed Apr 25 19:51:10 2018 +0100

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

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

Reply via email to