From patchwork Fri May 2 12:50:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 344958 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 A2B3014011B for ; Fri, 2 May 2014 22:56:43 +1000 (EST) 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:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=Q2Anki2kIdDrUumRDwzu17fhppZIkFyBovH9+u0tFanw1oByO+ OoZFfdryrXCmp8yId++LkjxjzeFJkExShPaFsqOezolluMRfdI8qLmZ65qS24CeS rsyGVCsXVZV/oOQ79XRBu8dZg/Vy9XLPB0CciKLt+3Q+cqoKavKOIfL5s= 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:cc:subject:message-id:mime-version:content-type; s= default; bh=D0H1FjHi0Tzq+Zo0pOFZuw3rke8=; b=p9w8grO0EcRcUMOpvEhg XwGSlPKU2+60TLApv+lJ+5i98dBdhpFUuSh3vTL58EpFsCQh6F4luMRQ9rOoNxRn z9SOjjn/zeWS8tEDbJdpK1zCw8m49NGMzORpttoVxcu7po7PmpgkCWJoyhZOk6/v 43iBPXACtQtUe2X6oKgDkCs= Received: (qmail 15338 invoked by alias); 2 May 2014 12:56:35 -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 15321 invoked by uid 89); 2 May 2014 12:56:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 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; Fri, 02 May 2014 12:56:33 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s42CuVok007804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 2 May 2014 08:56:31 -0400 Received: from redhat.com (ovpn-116-53.ams2.redhat.com [10.36.116.53]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s42CoE9f018037 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Fri, 2 May 2014 08:50:17 -0400 Date: Fri, 2 May 2014 14:50:14 +0200 From: Marek Polacek To: GCC Patches Cc: Jakub Jelinek , "Joseph S. Myers" Subject: [PATCH] Describe Wsizeof-pointer-memaccess in c.opt Message-ID: <20140502125014.GK11802@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Wsizeof-pointer-memaccess option is missing a description in the c.opt file. This patch adds something in there. Ok? 2014-05-02 Marek Polacek * c.opt (Wsizeof-pointer-memaccess): Describe option. Marek diff --git gcc/c-family/c.opt gcc/c-family/c.opt index 1bbb81c..7aa9e23 100644 --- gcc/c-family/c.opt +++ gcc/c-family/c.opt @@ -516,6 +516,7 @@ Warn about missing fields in struct initializers Wsizeof-pointer-memaccess C ObjC C++ ObjC++ Var(warn_sizeof_pointer_memaccess) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall) +Warn about suspicious length parameters to certain string functions if the argument uses sizeof Wsuggest-attribute=format C ObjC C++ ObjC++ Var(warn_suggest_attribute_format) Warning