diff options
| author | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-25 18:59:17 +0000 |
|---|---|---|
| committer | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-25 18:59:17 +0000 |
| commit | 01b54db5219a8bbc07e472fbed5d9d3ba819b235 (patch) | |
| tree | 422926c69eece5ffbbe1edf866faa7e2f8b99992 | |
| parent | e489762e2ca8210e1fd45153becccbfd6a8365c1 (diff) | |
| download | ppe42-gcc-01b54db5219a8bbc07e472fbed5d9d3ba819b235.tar.gz ppe42-gcc-01b54db5219a8bbc07e472fbed5d9d3ba819b235.zip | |
* c-common.c (handle_sentinel_attribute): Annotate warning
call with OPT_Wattributes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124163 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/c-common.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8d5e5e3d320..9dbd3276761 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -2,8 +2,10 @@ * c-typeck.c (build_compound_expr): Annotate warning() call with OPT_Wunused_value. - * tree-ssa.c ((warn_uninit): Annotate warning with - -Wuninitialized. + * tree-ssa.c (warn_uninit): Annotate warning with + OPT_Wunintialized. + * c-common.c (handle_sentinel_attribute): Annotate warning + call with OPT_Wattributes. 2007-04-25 Thiemo Seufer <ths@mips.com> diff --git a/gcc/c-common.c b/gcc/c-common.c index cedaa427764..d60b5a40957 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; } } |

