From 6e026f481e0d99c6aadef102be92604c15d49fa5 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 12 Aug 1993 21:14:02 +0000 Subject: Do not report -Wnested-extern errors for __FUNCTION__/__PRETTY_FUNCTION__. From-SVN: r5146 --- gcc/c-decl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 55983f2..62f77e9 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1778,7 +1778,9 @@ pushdecl (x) DECL_CONTEXT (x) = 0; 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)); if (name) -- cgit v1.1