projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1907795
)
(convert_for_assignment): Don't give errors about adding const or
author
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 8 May 1995 21:56:12 +0000
(17:56 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 8 May 1995 21:56:12 +0000
(17:56 -0400)
volatile unless both sides point to functions.
From-SVN: r9590
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 45700408321a07b7da7cf002a79bf6584c9d7e67..370ef39dee0b253352146b8dc970dc913662f90b 100644
(file)
--- 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,