[PATCH] warning annotation
Dirk Mueller
dmueller@suse.de
Tue Apr 24 23:46:00 GMT 2007
Hi,
bootstrapped, regtested on x86_64-suse-linux 2007-04-25 Dirk Mueller
<dmueller@suse.de>
* c-common.c (handle_sentinel_attribute): add Wattribute annotation
to the warning() calls.
--- c-common.c
+++ c-common.c
@@ -6079,14 +6113,14 @@ handle_sentinel_attribute (tree *node, t
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;
}
}
with slightly older mainline, no regressions.
Dirk
More information about the Gcc-patches
mailing list