Commit 6e026f48 by Michael Meissner

Do not report -Wnested-extern errors for __FUNCTION__/__PRETTY_FUNCTION__.

From-SVN: r5146
parent 7e2feebf
...@@ -1778,7 +1778,9 @@ pushdecl (x) ...@@ -1778,7 +1778,9 @@ pushdecl (x)
DECL_CONTEXT (x) = 0; DECL_CONTEXT (x) = 0;
if (warn_nested_externs && DECL_EXTERNAL (x) && b != global_binding_level if (warn_nested_externs && DECL_EXTERNAL (x) && b != global_binding_level
&& x != IDENTIFIER_IMPLICIT_DECL (name)) && x != IDENTIFIER_IMPLICIT_DECL (name)
/* Don't print error messages for __FUNCTION__ and __PRETTY_FUNCTION__ */
&& !DECL_IN_SYSTEM_HEADER (x))
warning ("nested extern declaration of `%s'", IDENTIFIER_POINTER (name)); warning ("nested extern declaration of `%s'", IDENTIFIER_POINTER (name));
if (name) if (name)
......
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