[PATCH] Describe Wsizeof-pointer-memaccess in c.opt

2014-05-02 Thread Marek Polacek
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  pola...@redhat.com

* c.opt (Wsizeof-pointer-memaccess): Describe option.

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

Marek


Re: [PATCH] Describe Wsizeof-pointer-memaccess in c.opt

2014-05-02 Thread Joseph S. Myers
On Fri, 2 May 2014, Marek Polacek wrote:

 Wsizeof-pointer-memaccess option is missing a description in
 the c.opt file.  This patch adds something in there.
 
 Ok?

OK.

-- 
Joseph S. Myers
jos...@codesourcery.com