Fix editing error in last change.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 20 Jan 1997 03:18:33 +0000 (22:18 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 20 Jan 1997 03:18:33 +0000 (22:18 -0500)
From-SVN: r13537

gcc/c-decl.c

index 0c6e1c3d6c0976fd7f7605f9eba641080d3d1dff..46c0f9c859dd592e4949e647b67f2d918f7f5f5a 100644 (file)
@@ -6256,7 +6256,7 @@ start_function (declspecs, declarator, prefix_attributes, attributes, nested)
 
       if (TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (decl1)))
           != integer_type_node)
-       pedwarn_with_decl (fndecl, "return type of `%s' is not `int'");
+       pedwarn_with_decl (decl1, "return type of `%s' is not `int'");
 
       for (args = TYPE_ARG_TYPES (TREE_TYPE (decl1)); args;
           args = TREE_CHAIN (args))