Commit d71f83ca by Richard Kenner

(start_function): Fix improper installation of last change.

From-SVN: r13581
parent 906a2d3c
...@@ -6293,16 +6293,16 @@ start_function (declspecs, declarator, prefix_attributes, attributes, nested) ...@@ -6293,16 +6293,16 @@ start_function (declspecs, declarator, prefix_attributes, attributes, nested)
"third argument of `%s' should probably be `char **'"); "third argument of `%s' should probably be `char **'");
break; break;
} }
}
/* It is intentional that this message does not mention the third /* It is intentional that this message does not mention the third
argument, which is warned for only pedantically, because it's argument, which is warned for only pedantically, because it's
blessed by mention in an appendix of the standard. */ blessed by mention in an appendix of the standard. */
if (argct > 0 && (argct < 2 || argct > 3)) if (argct > 0 && (argct < 2 || argct > 3))
pedwarn_with_decl (decl1, "`%s' takes only zero or two arguments"); pedwarn_with_decl (decl1, "`%s' takes only zero or two arguments");
if (argct == 3 && pedantic) if (argct == 3 && pedantic)
pedwarn_with_decl (decl1, "third argument of `%s' is deprecated"); pedwarn_with_decl (decl1, "third argument of `%s' is deprecated");
}
if (! TREE_PUBLIC (decl1)) if (! TREE_PUBLIC (decl1))
pedwarn_with_decl (decl1, "`%s' is normally a non-static function"); pedwarn_with_decl (decl1, "`%s' is normally a non-static function");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment