Fix typo in last change.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 12 Aug 1994 13:10:54 +0000 (09:10 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 12 Aug 1994 13:10:54 +0000 (09:10 -0400)
From-SVN: r7901

gcc/c-decl.c

index 915f3aa1b42c2a0dc3d21f84bbfe78b26243de1a..c861ed32cc58a9330f8bb684ad3fd7271ce0f29d 100644 (file)
@@ -1626,7 +1626,7 @@ duplicate_decls (newdecl, olddecl)
     }
 
   /* Optionally warn about more than one declaration for the same name.  */
-  if (errmsg = 0 && warn_redundant_decls && DECL_SOURCE_LINE (olddecl) != 0
+  if (errmsg == 0 && warn_redundant_decls && DECL_SOURCE_LINE (olddecl) != 0
       /* Dont warn about a function declaration
         followed by a definition.  */
       && !(TREE_CODE (newdecl) == FUNCTION_DECL && DECL_INITIAL (newdecl) != 0