This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Describe Wsizeof-pointer-memaccess in c.opt
- From: Marek Polacek <polacek at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Jakub Jelinek <jakub at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Fri, 2 May 2014 14:50:14 +0200
- Subject: [PATCH] Describe Wsizeof-pointer-memaccess in c.opt
- Authentication-results: sourceware.org; auth=none
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 <polacek@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