summaryrefslogtreecommitdiff
path: root/gcc/c-family/c-common.h
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-27 09:48:56 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-27 09:48:56 +0000
commit403852314f20a459a08b11751499a7cc24c239d7 (patch)
tree96f8374ba1ef35e3c658690c190cb0d008ae3001 /gcc/c-family/c-common.h
parent9fb87409baebd5824960c761407e0122cb61ed48 (diff)
downloadgcc-403852314f20a459a08b11751499a7cc24c239d7.tar.gz
* doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
(-Wmemset-elt-size): New item. c-family/ * c.opt (Wmemset-elt-size): New option. * c-common.c (warn_for_memset): New function. * c-common.h (warn_for_memset): Declare. c/ * c-parser.c (c_parser_postfix_expression_after_primary): Call warn_for_memset instead of warning directly here. cp/ * parser.c (cp_parser_postfix_expression): Call warn_for_memset instead of warning directly here. testsuite/ * c-c++-common/memset-array.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235475 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r--gcc/c-family/c-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h
index 4c43a354fef..b631e7d1af5 100644
--- a/gcc/c-family/c-common.h
+++ b/gcc/c-family/c-common.h
@@ -903,6 +903,7 @@ extern void c_parse_file (void);
extern void c_parse_final_cleanups (void);
extern void warn_for_omitted_condop (location_t, tree);
+extern void warn_for_memset (location_t, tree, tree, int);
/* These macros provide convenient access to the various _STMT nodes. */