From patchwork Sat Apr 7 22:00:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joey Pabalinas X-Patchwork-Id: 10328031 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 7281760541 for ; Sat, 7 Apr 2018 22:00:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5ED8328A58 for ; Sat, 7 Apr 2018 22:00:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53C1529260; Sat, 7 Apr 2018 22:00: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.0 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 D215028A58 for ; Sat, 7 Apr 2018 22:00:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752366AbeDGWAb (ORCPT ); Sat, 7 Apr 2018 18:00:31 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:35905 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752349AbeDGWAa (ORCPT ); Sat, 7 Apr 2018 18:00:30 -0400 Received: by mail-pf0-f195.google.com with SMTP id g14so3228577pfh.3 for ; Sat, 07 Apr 2018 15:00:30 -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=uOaTutVzf+MfCKBFf9tEOG1y58xHscckhkxdNjj89PQ=; b=b0YCIREdfq3/JeYDGBGTQEJkSr4LSYsrYwLqkqROh6jH2TPjZ+qWn/A9nRwpNF4XWo 0Ru+LahHP8uW+ykFdlO583Q4ahhbh/lfIiDgK94BH9DIcowFyJerbIoo1W6GpLgtndTP ICVlFac2CM/AknJRqGq4o6Y3Z7zDZh5eRW3Iw4O2nHDTlrib7e60bNc8PusFMgZGprjP ehVxL/gNsNr6tdl9s7fRbxqvw6COr0wjB2euSzcIOWuRxujJLAMbA08OvPJDr2mYY5Vc TKIPjZO00hnxyZYQU0EwVuN/kgdA/CAypmgn1/3Mxz4sSglkpxXNK6byDmDMmWevW0J9 VXvg== 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=uOaTutVzf+MfCKBFf9tEOG1y58xHscckhkxdNjj89PQ=; b=e3/44wSMyEfVU0E25GT+wsibV0HwB2qGttlU4WsbOLaa4zhd6EiOFt6ouUTMsvLnEn ZrG8DhQRNuyX1qiaxHbunFYb2wzpQdopMlgvFVs26MWf8JK0SS6Fahz2ILSqxaoWwQh1 Ck0p6llm9S6ZylY0LAHe/MSH74tc/PYXwbKM1+MENX/sXcvXioJqH/vMSTUbijxpxOpg pNDOqXU1iNxY6hdItFFpWGqcC9mNGteoOqotK318iYyq04e0ESJhbVrCkmvA4vXjkx00 KqoHdDc4zPl9IfV3ZNscNFv34U6SOPh22OI494RmdewqGrjUh5Tzl0k/PnL+yvXICtQ9 lVwQ== X-Gm-Message-State: AElRT7FvpGa/DFkxgelAWpBFf3gxnooRMPlLkWyK0RjOS1T3HRr8TxKb +ElOJ5OpJeQyGqFsVI5cCPcJpQ== X-Google-Smtp-Source: AIpwx4/0IEWuBlhCtWvudcYHEaqbAY335Jxi2tVZGiLcXgzbg49+sNRbjhMkc+v+fsufLb4VOQj5Kw== X-Received: by 10.101.87.136 with SMTP id b8mr20925106pgr.282.1523138429877; Sat, 07 Apr 2018 15:00: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 d199sm25573440pfd.95.2018.04.07.15.00.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 07 Apr 2018 15:00:29 -0700 (PDT) Date: Sat, 7 Apr 2018 12:00:17 -1000 From: Joey Pabalinas To: linux-sparse@vger.kernel.org Cc: Al Viro , Christopher Li , Joey Pabalinas , Luc Van Oostenryck Subject: [PATCH] doc: copy-edit manual/warning text for sizeof(_Bool) Message-ID: <20180407220017.qxnx37x2onrgs4wk@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 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/evaluate.c b/evaluate.c index f828da37df8e686623..de85feaea696ba5358 100644 --- a/evaluate.c +++ b/evaluate.c @@ -2200,7 +2200,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 4379406999c94b806e..598ba396571f123e7d 100644 --- a/sparse.1 +++ b/sparse.1 @@ -346,9 +346,10 @@ Sparse does not issue these warnings by default. . .TP .B \-Wsizeof-bool -Warn when checking the sizeof a _Bool. +Warn when applying \fBsizeof\fR to a _Bool type. -C99 does not specify the sizeof a _Bool. gcc uses 1. +C99 does not specify the \fBsizeof(_Bool)\fR. By default, GCC assigns _Bool a +size of \fI1\fR. Sparse does not issue these warnings by default. .