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

volatile unless both sides point to functions.

From-SVN: r9590
This commit is contained in:
Richard Kenner 1995-05-08 17:56:12 -04:00
parent 1907795ecd
commit d949d5dfde
1 changed files with 2 additions and 1 deletions

View File

@ -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,