From patchwork Sun Apr 8 08:54:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Pabalinas X-Patchwork-Id: 10328239 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AAEC96037F for ; Sun, 8 Apr 2018 08:54:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9898D28DED for ; Sun, 8 Apr 2018 08:54:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B41128DFA; Sun, 8 Apr 2018 08:54:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FSL_HELO_FAKE, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID,T_TVD_MIME_EPI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD5A228DED for ; Sun, 8 Apr 2018 08:54:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751954AbeDHIya (ORCPT ); Sun, 8 Apr 2018 04:54:30 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37086 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751783AbeDHIy3 (ORCPT ); Sun, 8 Apr 2018 04:54:29 -0400 Received: by mail-pf0-f195.google.com with SMTP id p6so263048pfn.4 for ; Sun, 08 Apr 2018 01:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=zSnEiyUUuLG/JEeB6qCouVEt75yb6yoDdSAiKxjdc1A=; b=f4EXvM6Gr4qE3gHqo5Xv7a3wV6tlny58F4EdzjTPCUkP1SbVhTC5vK0fSUsniK1jn4 BWFTi4vLrC/yQ88rTPNYVQZzhrCZWl7Rk4gR6BEX8pCVcoFPF4sjPvMTIbVhtmV6ed/6 Pvyk/3LxDH/1mdI5JeES8u0E0SMHd9rJMrTpoeayAi+jg+X8SUSQQuZF4XZAhg3LTrH0 MclwPiyfLLA7Aso4FS5ggjaedQlWxKugBjiSuBNGESkNpjSd/0y4DEv1zO84jzs7Qn6k QYdITUo6P0QgeVk7HNNKkSYgUCuTYGGslqZ5bNMGLP511nQ4HlhAtphC/dJ62Gqb86KZ WjPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=zSnEiyUUuLG/JEeB6qCouVEt75yb6yoDdSAiKxjdc1A=; b=XZV+ObdzUimjNhAsqm+X5/GYJCcRjqO4uZzGVWiQF/ofpqNyCCCiHT/6pcc8ndxDH0 8SNKw3kkh/tCzzFb6q0jxNaDmp1GSmV2TdGCIluGwulDClk33YFfujVoPFKC3ufimm3i dmIFWE9F10+8Vw9WLTMJIxYfMRDN0jCjJCWdHCnNZgmnfDBkrEmhUXQgL5YgzrXzDK5s PUyuDTutkbUhlEkRTJ6l1S3qNJfVTuYHV9dhTYo28fu/h2USUndoddJrx1hkmdyOoOSO VX2cnuPLb5L89psEZWaJLlnBG6+3qBZrmS9bCZjqezxQSxcybO5ynRulrmX7zE6+fVI7 3Egg== X-Gm-Message-State: AElRT7H6dO0m+NujBiOipLMC4poMLzGHk51RDRFXZLJ0JEw58MyL94Er z11gKaK6eSJS6nsQSSg1/W63Cg== X-Google-Smtp-Source: AIpwx4/uyaN0W8RrWd95kNvIWvEtg5Z9Ll851M0lcglCuJyDqsms1rmnPZzEnQOqkKZ57PjYeQd/Yg== X-Received: by 10.99.47.4 with SMTP id v4mr22650645pgv.42.1523177669125; Sun, 08 Apr 2018 01:54:29 -0700 (PDT) Received: from gmail.com (cpe-98-150-136-16.hawaii.res.rr.com. [98.150.136.16]) by smtp.gmail.com with ESMTPSA id t25sm29481859pfj.187.2018.04.08.01.54.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Apr 2018 01:54:28 -0700 (PDT) Date: Sat, 7 Apr 2018 22:54:16 -1000 From: Joey Pabalinas To: linux-sparse@vger.kernel.org Cc: Al Viro , Christopher Li , Joey Pabalinas , Luc Van Oostenryck Subject: [PATCH V2] doc: copy-edit text related to applying sizeof to a _Bool Message-ID: <20180408085416.vbomceitg5l5672t@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180323 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Clean up the grammar/capitalization of the -Wsizeof-bool sections and italicize the size (1) so that it is consistent with the surrounding text. CC: Al Viro CC: Christopher Li CC: Joey Pabalinas CC: Luc Van Oostenryck Signed-off-by: Joey Pabalinas Signed-off-by: Luc Van Oostenryck evaluate.c | 2 +- sparse.1 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) Acked-by: Luc Van Oostenryck diff --git a/evaluate.c b/evaluate.c index 4e1dffe9c5416380df..9ee47c611958c7e8bf 100644 --- a/evaluate.c +++ b/evaluate.c @@ -2199,7 +2199,7 @@ static struct symbol *evaluate_sizeof(struct expression *expr) if (size == 1 && is_bool_type(type)) { if (Wsizeof_bool) - warning(expr->pos, "expression using sizeof bool"); + warning(expr->pos, "expression using sizeof _Bool"); size = bits_in_char; } diff --git a/sparse.1 b/sparse.1 index 88343f3170f195297a..01f8869825a1dc9e37 100644 --- a/sparse.1 +++ b/sparse.1 @@ -329,7 +329,7 @@ Sparse does not issue these warnings by default. .B \-Wsizeof-bool Warn when checking the sizeof a _Bool. -C99 does not specify the sizeof a _Bool. gcc uses 1. +C99 does not specify the size of a _Bool. GCC, by default, uses \fI1\fR. Sparse does not issue these warnings by default. .