diff options
author | Dirk Mueller <dmueller@suse.de> | 2007-04-25 18:59:17 +0000 |
---|---|---|
committer | Dirk Mueller <mueller@gcc.gnu.org> | 2007-04-25 18:59:17 +0000 |
commit | aa86a51b89bb62b088d3c83007779d6baf00ae44 (patch) | |
tree | 422926c69eece5ffbbe1edf866faa7e2f8b99992 /gcc/c-common.c | |
parent | d1c2effe9a6ddc75da0c21aba5792ba08e668081 (diff) | |
download | gcc-aa86a51b89bb62b088d3c83007779d6baf00ae44.zip gcc-aa86a51b89bb62b088d3c83007779d6baf00ae44.tar.gz gcc-aa86a51b89bb62b088d3c83007779d6baf00ae44.tar.bz2 |
c-common.c (handle_sentinel_attribute): Annotate warning call with OPT_Wattributes.
* c-common.c (handle_sentinel_attribute): Annotate warning
call with OPT_Wattributes.
From-SVN: r124163
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index cedaa42..d60b5a4 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -6065,14 +6065,16 @@ handle_sentinel_attribute (tree *node, tree name, tree args, if (TREE_CODE (position) != INTEGER_CST) { - warning (0, "requested position is not an integer constant"); + warning (OPT_Wattributes, + "requested position is not an integer constant"); *no_add_attrs = true; } else { if (tree_int_cst_lt (position, integer_zero_node)) { - warning (0, "requested position is less than zero"); + warning (OPT_Wattributes, + "requested position is less than zero"); *no_add_attrs = true; } } |