From patchwork Sat Jul 18 20:41:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramsay Jones X-Patchwork-Id: 36209 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6IL9qsZ006441 for ; Sat, 18 Jul 2009 21:09:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753674AbZGRVJy (ORCPT ); Sat, 18 Jul 2009 17:09:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753744AbZGRVJy (ORCPT ); Sat, 18 Jul 2009 17:09:54 -0400 Received: from anchor-post-3.mail.demon.net ([195.173.77.134]:41075 "EHLO anchor-post-3.mail.demon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753697AbZGRVJx (ORCPT ); Sat, 18 Jul 2009 17:09:53 -0400 Received: from ramsay1.demon.co.uk ([193.237.126.196]) by anchor-post-3.mail.demon.net with esmtp (Exim 4.69) id 1MSHAF-0005Mv-oT; Sat, 18 Jul 2009 21:09:53 +0000 Message-ID: <4A62338A.1060600@ramsay1.demon.co.uk> Date: Sat, 18 Jul 2009 21:41:46 +0100 From: Ramsay Jones User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Christopher Li CC: Sparse Mailing-list Subject: [PATCH 2/5] Fix some "enum value 'SYM_...' not handled in switch" warnings Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org Signed-off-by: Ramsay Jones --- Hi Chris, These warnings were issued by gcc v3.4.4, but not by gcc v4.1.2. So I guess gcc probably found these warnings to be too noisy ... ATB, Ramsay Jones parse.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/parse.c b/parse.c index e5ad867..42e8c74 100644 --- a/parse.c +++ b/parse.c @@ -2616,6 +2616,8 @@ struct token *external_declaration(struct token *token, struct symbol_list **lis case SYM_ENUM: case SYM_RESTRICT: base_type->ident = ident; + default: + break; } } } else if (base_type && base_type->type == SYM_FN) {