From: Richard Kenner Date: Mon, 8 May 1995 21:56:12 +0000 (-0400) Subject: (convert_for_assignment): Don't give errors about adding const or X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d949d5dfde30fe2393ce4c7fd87e3fc6d073f075;p=gcc.git (convert_for_assignment): Don't give errors about adding const or volatile unless both sides point to functions. From-SVN: r9590 --- diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 45700408321..370ef39dee0 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -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,