Commit d949d5df by Richard Kenner

(convert_for_assignment): Don't give errors about adding const or

volatile unless both sides point to functions.

From-SVN: r9590
parent 1907795e
......@@ -4052,7 +4052,8 @@ convert_for_assignment (type, rhs, errtype, fundecl, funname, parmnum)
warn_for_assignment ("pointer targets in %s differ in signedness",
get_spelling (errtype), funname, parmnum);
}
else
else if (TREE_CODE (ttl) == FUNCTION_TYPE
&& TREE_CODE (ttr) == FUNCTION_TYPE)
{
/* Because const and volatile on functions are restrictions
that say the function will not do certain things,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment