OSDN Git Service

Fix editing error in last change.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Jan 1997 03:18:33 +0000 (03:18 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Jan 1997 03:18:33 +0000 (03:18 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13537 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-decl.c

index 0c6e1c3..46c0f9c 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))