From patchwork Wed Apr 25 18:54:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 904685 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-476821-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="vvGQCmJj"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40WTry6ZGXz9ryk for ; Thu, 26 Apr 2018 04:54:41 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=BjPF7bpbbi/j0P8af75gZuV0u5p1Se+a8DaJgpqpCh8VM2s5hpJnp U+jAiSxy8FjoVO3CZHh5xLtbNhrQfWpQFWeZOl4yKUqUWVuizFn8bFLaQGHgVXx2 Z5rVhjWcwnTV+S/QLnCkmjEf91/HuGhv6FnS4v872g1ogqc95LhvH8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=y+Odmnpw5xVtR9+4MUOLMNXsLrE=; b=vvGQCmJjAzj2dVVLhtSE kXQdG05obE2xjKLc53iMmiLp58SFSan7a8yne00t/NQmOR4mIxWRGqTZJ6QEP8yh WCngFCGLnW72buj654ojtQPYHJ098uhU2oPN0r5vWtWZJ+6aMee34eFKGKGBu+WU eTZc5TJNezehP6L+bsB8wFI= Received: (qmail 74905 invoked by alias); 25 Apr 2018 18:54:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 73661 invoked by uid 89); 25 Apr 2018 18:54:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Apr 2018 18:54:32 +0000 Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 05B1C30016F3 for ; Wed, 25 Apr 2018 18:54:31 +0000 (UTC) Received: from localhost (unknown [10.33.36.69]) by smtp.corp.redhat.com (Postfix) with ESMTP id A9BA2313B048 for ; Wed, 25 Apr 2018 18:54:30 +0000 (UTC) Date: Wed, 25 Apr 2018 19:54:29 +0100 From: Jonathan Wakely To: gcc-patches@gcc.gnu.org Subject: [PATCH] Document that -Wreturn-type is enabled by default for C++ Message-ID: <20180425185429.GA18065@redhat.com> MIME-Version: 1.0 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.1 (2017-09-22) * doc/invoke.texi (-Wreturn-type): Document default status for C++. OK for trunk and gcc-8-branch? commit 20357a8ded851a3376b7e8978c77e7c56b1a273e Author: Jonathan Wakely 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