projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2871d24
)
(convert_for_assignment): Fix typo in testing for pointer to function
author
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 9 Mar 1995 14:00:50 +0000
(09:00 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 9 Mar 1995 14:00:50 +0000
(09:00 -0500)
type.
From-SVN: r9142
gcc/c-typeck.c
patch
|
blob
|
history
diff --git
a/gcc/c-typeck.c
b/gcc/c-typeck.c
index 688393f7ae08714e7f43383fb147cf1850d9a282..d9d58af9848ae81f7cf0c3b2821092c9d8fc9d15 100644
(file)
--- a/
gcc/c-typeck.c
+++ b/
gcc/c-typeck.c
@@
-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",