Message ID | 20140502125014.GK11802@redhat.com |
---|---|
State | New |
Headers | show |
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.
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