From: Jonathan Wakely Date: Thu, 26 Apr 2018 13:52:15 +0000 (+0100) Subject: Document that -Wreturn-type is enabled by default for C++ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=030b3bddb0f819f92dba703aa9fa8f50eaa730b8;p=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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0e06a092ef..0ae93fd322e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-04-26 Jonathan Wakely + + * doc/invoke.texi (-Wreturn-type): Document default status for C++. + 2018-04-26 Tom de Vries PR target/84952 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 9c7fe187f48..444159178a7 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