From caf2e8e4014693d8b09ce7d785b36d11026cfb72 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 9 Mar 1995 09:00:50 -0500 Subject: [PATCH] (convert_for_assignment): Fix typo in testing for pointer to function type. From-SVN: r9142 --- gcc/c-typeck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 688393f7ae0..d9d58af9848 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", -- 2.30.2