From d949d5dfde30fe2393ce4c7fd87e3fc6d073f075 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 8 May 1995 17:56:12 -0400 Subject: [PATCH] (convert_for_assignment): Don't give errors about adding const or volatile unless both sides point to functions. From-SVN: r9590 --- gcc/c-typeck.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.30.2