* Remove trailing comma after last enum constant
@ 2004-06-02 20:21 Albert Chin
2004-06-02 20:54 ` Andrew Cagney
0 siblings, 1 reply; 2+ messages in thread
From: Albert Chin @ 2004-06-02 20:21 UTC (permalink / raw)
To: gdb-patches
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 <china@thewrittenword.com>
* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-02 20:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-02 20:21 Remove trailing comma after last enum constant Albert Chin
2004-06-02 20:54 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox