Commit caf2e8e4 by Richard Kenner

(convert_for_assignment): Fix typo in testing for pointer to function

type.

From-SVN: r9142
parent 2871d24f
......@@ -3985,7 +3985,7 @@ convert_for_assignment (type, rhs, errtype, fundecl, funname, parmnum)
/* Const and volatile mean something different for function types,
so the usual warnings are not appropriate. */
else if (TREE_CODE (ttr) != FUNCTION_TYPE
|| TREE_CODE (ttl) != FUNCTION_TYPE)
&& TREE_CODE (ttl) != FUNCTION_TYPE)
{
if (! TYPE_READONLY (ttl) && TYPE_READONLY (ttr))
warn_for_assignment ("%s discards `const' from pointer target type",
......
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