From 6577374eaa1de4e387f4a67c300133922dd52707 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 2 May 2014 18:07:40 +0000 Subject: [PATCH] * c.opt (Wsizeof-pointer-memaccess): Describe option. From-SVN: r210011 --- gcc/c-family/ChangeLog | 4 ++++ gcc/c-family/c.opt | 1 + 2 files changed, 5 insertions(+) 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