diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index fddfcd8c2f0..3c9732395d3 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2014-05-02 Marek Polacek + + * c.opt (Wsizeof-pointer-memaccess): Describe option. + 2014-05-01 Marek Polacek PR c/43245 diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 1bbb81c8425..7aa9e23c10e 100644 --- a/gcc/c-family/c.opt +++ b/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