From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3868 invoked by alias); 2 Jun 2004 20:21:06 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3861 invoked from network); 2 Jun 2004 20:21:05 -0000 Received: from unknown (HELO mail1.thewrittenword.com) (67.95.107.114) by sourceware.org with SMTP; 2 Jun 2004 20:21:05 -0000 Received: by mail1.thewrittenword.com (Postfix, from userid 1000) id 615771E2; Wed, 2 Jun 2004 15:21:05 -0500 (CDT) Date: Wed, 02 Jun 2004 20:21:00 -0000 From: Albert Chin To: gdb-patches@sources.redhat.com Subject: Remove trailing comma after last enum constant Message-ID: <20040602202105.GZ32108@mail1.thewrittenword.com> Reply-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-SW-Source: 2004-06/txt/msg00033.txt.bz2 The IBM C compiler doesn't like a comma after the last enum constant. Patch below against 6.1. -- albert chin (china@thewrittenword.com) -- snip snip 2004-06-02 Albert Chin-A-Young * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma after last enum constant to avoid error from IBM C compiler. --- gdb/dictionary.c.orig 2004-05-27 00:32:12.512651000 -0500 +++ gdb/dictionary.c 2004-05-27 00:32:17.258512000 -0500 @@ -99,7 +99,7 @@ /* Symbols are stored in a fixed-size array. */ DICT_LINEAR, /* Symbols are stored in an expandable array. */ - DICT_LINEAR_EXPANDABLE, + DICT_LINEAR_EXPANDABLE }; /* The virtual function table. */ --- gdb/gdbtypes.h.orig 2004-05-27 01:52:39.396450000 -0500 +++ gdb/gdbtypes.h 2004-05-27 01:52:54.021469000 -0500 @@ -136,7 +136,7 @@ TYPE_CODE_TEMPLATE, /* C++ template */ TYPE_CODE_TEMPLATE_ARG, /* C++ template arg */ - TYPE_CODE_NAMESPACE, /* C++ namespace. */ + TYPE_CODE_NAMESPACE /* C++ namespace. */ }; /* For now allow source to use TYPE_CODE_CLASS for C++ classes, as an