aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-05-02 18:07:40 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-05-02 18:07:40 +0000
commit6577374eaa1de4e387f4a67c300133922dd52707 (patch)
tree101a3c73c788ce52c288424c770d17a3f134d84f /gcc
parent95782571f3bcd00cca47233cc07b927c24d400ef (diff)
downloadgcc-6577374eaa1de4e387f4a67c300133922dd52707.zip
gcc-6577374eaa1de4e387f4a67c300133922dd52707.tar.gz
gcc-6577374eaa1de4e387f4a67c300133922dd52707.tar.bz2
* c.opt (Wsizeof-pointer-memaccess): Describe option.
From-SVN: r210011
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-family/ChangeLog4
-rw-r--r--gcc/c-family/c.opt1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index fddfcd8..3c97323 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,7 @@
+2014-05-02 Marek Polacek <polacek@redhat.com>
+
+ * c.opt (Wsizeof-pointer-memaccess): Describe option.
+
2014-05-01 Marek Polacek <polacek@redhat.com>
PR c/43245
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 1bbb81c..7aa9e23 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