Do not warn about no prior declaration for extern declarations.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 14 Dec 2007 18:11:21 +0000 (18:11 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 14 Dec 2007 18:11:21 +0000 (18:11 +0000)
[r18752]

parser.c

index 6acf52b..35ebcb6 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -2352,6 +2352,7 @@ warn_redundant_declaration:
                }
        } else if (warning.missing_declarations &&
            context == global_context &&
+           declaration->storage_class != STORAGE_CLASS_EXTERN &&
            declaration->storage_class != STORAGE_CLASS_STATIC &&
            declaration->storage_class != STORAGE_CLASS_TYPEDEF &&
            declaration->storage_class != STORAGE_CLASS_ENUM_ENTRY &&