diff mbox series

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

Message ID 20180425185429.GA18065@redhat.com
State New
Headers show
Series Document that -Wreturn-type is enabled by default for C++ | expand

Commit Message

Jonathan Wakely April 25, 2018, 6:54 p.m. UTC
* doc/invoke.texi (-Wreturn-type): Document default status for C++.

OK for trunk and gcc-8-branch?
commit 20357a8ded851a3376b7e8978c77e7c56b1a273e
Author: Jonathan Wakely <jwakely@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++.

Comments

Richard Biener April 26, 2018, 7:47 a.m. UTC | #1
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 mbox series

Patch

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