call with OPT_Wattributes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124163
138bc75d-0d04-0410-961f-
82ee72b054a4
* 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>
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;
}
}