From 1e7458bc3eba2e714c913fa35aa397d54ed99a42 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Fri, 14 Dec 2007 18:14:40 +0000 Subject: [PATCH] Simplify condition. [r18753] --- parser.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/parser.c b/parser.c index 35ebcb6..e368828 100644 --- a/parser.c +++ b/parser.c @@ -2351,12 +2351,10 @@ warn_redundant_declaration: warningf(declaration->source_position, "no previous declaration for '%#T'", type, symbol); } } 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 && - declaration->storage_class != STORAGE_CLASS_THREAD_STATIC) { + context == global_context && ( + declaration->storage_class == STORAGE_CLASS_NONE || + declaration->storage_class == STORAGE_CLASS_THREAD + )) { warningf(declaration->source_position, "no previous declaration for '%#T'", type, symbol); } -- 2.20.1