diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-03-09 09:00:50 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-03-09 09:00:50 -0500 |
commit | caf2e8e4014693d8b09ce7d785b36d11026cfb72 (patch) | |
tree | 8938cbc2f72884b608a97cd5724b9a9e002fe8a2 | |
parent | 2871d24f4a83bbe1131a6a08536193c125afdfdd (diff) | |
download | gcc-caf2e8e4014693d8b09ce7d785b36d11026cfb72.zip gcc-caf2e8e4014693d8b09ce7d785b36d11026cfb72.tar.gz gcc-caf2e8e4014693d8b09ce7d785b36d11026cfb72.tar.bz2 |
(convert_for_assignment): Fix typo in testing for pointer to function
type.
From-SVN: r9142
-rw-r--r-- | gcc/c-typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 688393f..d9d58af 100644 --- 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", |