Commit 6b19af32 by Richard Stallman

(builtin_function): Set C_DECL_ANTICIPATED for user-visible names.

From-SVN: r1285
parent 4cca064d
......@@ -2672,6 +2672,10 @@ builtin_function (name, type, function_code, library_name)
DECL_BUILT_IN (decl) = 1;
DECL_SET_FUNCTION_CODE (decl, function_code);
}
/* Warn if a function in the namespace for users
is used without an occasion to consider it declared. */
if (name[0] != '_' || name[1] != '_')
C_DECL_ANTICIPATED (decl) = 1;
return decl;
}
......
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