c-common.c (handle_sentinel_attribute): Annotate warning call with OPT_Wattributes.
authorDirk Mueller <dmueller@suse.de>
Wed, 25 Apr 2007 18:59:17 +0000 (18:59 +0000)
committerDirk Mueller <mueller@gcc.gnu.org>
Wed, 25 Apr 2007 18:59:17 +0000 (18:59 +0000)
       * c-common.c (handle_sentinel_attribute): Annotate warning
       call with OPT_Wattributes.

From-SVN: r124163

gcc/ChangeLog
gcc/c-common.c

index 8d5e5e3d320a911ba86c8aaa1dad7f636b7213bd..9dbd32767611bb774440f2507e3485622dbbcfd0 100644 (file)
@@ -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>
 
index cedaa4277646ff555a206fbacdb287d43918bdf9..d60b5a4095759ba8f2d0f73223c2893abfdceeed 100644 (file)
@@ -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;
            }
        }