(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:
parent
1907795ecd
commit
d949d5dfde
|
@ -4052,7 +4052,8 @@ convert_for_assignment (type, rhs, errtype, fundecl, funname, parmnum)
|
||||||
warn_for_assignment ("pointer targets in %s differ in signedness",
|
warn_for_assignment ("pointer targets in %s differ in signedness",
|
||||||
get_spelling (errtype), funname, parmnum);
|
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
|
/* Because const and volatile on functions are restrictions
|
||||||
that say the function will not do certain things,
|
that say the function will not do certain things,
|
||||||
|
|
Loading…
Reference in New Issue