From patchwork Wed Oct 12 10:37:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 681110 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3sv9L55Y02z9sD6 for ; Wed, 12 Oct 2016 21:37:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=bOcwvNFT; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=yiS6mREncY1Ye7HAjrMqa+Y9dwN5L58x1y7rgvq2eKcsqmsFvV zTi/VNmfNqxv4/F06QUxOpk8KEsPfwIBN5ysfXDNwJbwKr83J0GfOHlE27+BkhDS BNLyCPeuKvc+VfUHA6kLE27U20RmNoFlMiDo16SkI80QfJaEv1kNqRma8= 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:to:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=Qnsx2D4wnvWya85HYKkz92F0hAc=; b=bOcwvNFTYojNkRUOZQF9 l16m8IaHdUN6KrlP5US+K7VQ6N9Rt4skQJqyC5S/UX0n3L96KAGXzGsdryFUaSLY 3FeI0ny9XKXrX2XT34UWVi2U0aoB0V1Bv7Pe7tosAhgv9ubZKlKf04d1iws4G5OP RlltiJXDwbu22GESoB+NWyo= Received: (qmail 106940 invoked by alias); 12 Oct 2016 10:37:39 -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 106929 invoked by uid 89); 12 Oct 2016 10:37:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=extraneous X-HELO: mail-qt0-f172.google.com Received: from mail-qt0-f172.google.com (HELO mail-qt0-f172.google.com) (209.85.216.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Oct 2016 10:37:29 +0000 Received: by mail-qt0-f172.google.com with SMTP id m5so11639357qtb.3 for ; Wed, 12 Oct 2016 03:37:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:to:cc:from:subject:message-id:date :user-agent:mime-version; bh=olVcM9sCBo9vHFDXhIYfBHqzXxtZxMLdoq6hGoyDRwc=; b=GJXhCoMI9L9Nz3Fvo+/qxA+lT9UtB84Xv2L0oQvXIESaVqRW7bDifPWUFznRmSfgvj 5gf/tzWpjwfCJ8QoJOJNuIuDrWP7Fly690I6aruZIohoGy7viZtfomHtmOynYtPx4jzC jn67LPsjUgdPboF0NTBMq5DSBtXFObpRbUgBpFL8xzveipVUa9nG+um3v1mGhxwD3k1z Lprrnm1tVzCLkgPfMxssaIt2gcuWsJOMMsUq4sjuya1xlnWjH1TowX41CF6pn6LEe2aw ycRQI7gdNWRHax35F8mhN/YxcNYYZiKAkmArclIxs4Hy3WKYgBmrEyHUtNVXR+RZ0gDh kC0g== X-Gm-Message-State: AA6/9RmCTl1oN/QtkPB6ltBLd3ORuEUPlC+J3M5mKx6g/ftvufYDJd/Lepk1vUfPVeqgAQ== X-Received: by 10.200.41.108 with SMTP id z41mr348497qtz.20.1476268647376; Wed, 12 Oct 2016 03:37:27 -0700 (PDT) Received: from ?IPv6:2601:181:c003:1930:3fe6:c217:b86a:6e86? ([2601:181:c003:1930:3fe6:c217:b86a:6e86]) by smtp.googlemail.com with ESMTPSA id u129sm2600194qkf.25.2016.10.12.03.37.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Oct 2016 03:37:26 -0700 (PDT) To: GCC Patches Cc: David Malcolm From: Nathan Sidwell Subject: [diagnostic] fix formatting Message-ID: <814265ac-64cb-5f44-5e06-98d503c5668c@acm.org> Date: Wed, 12 Oct 2016 06:37:25 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 I noticed some extraneous braces and extra long lines. Applied as obvious. nathan 2016-10-12 Nathan Sidwell * diagnostic.c (diagnostc_report_diagnostic): Fix formatting. Index: diagnostic.c =================================================================== --- diagnostic.c (revision 241024) +++ diagnostic.c (working copy) @@ -877,13 +877,15 @@ diagnostic_report_diagnostic (diagnostic } } } + /* This tests if the user provided the appropriate -Werror=foo option. */ if (diag_class == DK_UNSPECIFIED - && context->classify_diagnostic[diagnostic->option_index] != DK_UNSPECIFIED) - { - diagnostic->kind = context->classify_diagnostic[diagnostic->option_index]; - } + && (context->classify_diagnostic[diagnostic->option_index] + != DK_UNSPECIFIED)) + diagnostic->kind + = context->classify_diagnostic[diagnostic->option_index]; + /* This allows for future extensions, like temporarily disabling warnings for ranges of source code. */ if (diagnostic->kind == DK_IGNORED)