This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Remove trailing commas
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Tue, 03 Nov 2009 07:12:04 -0800
- Subject: gold patch committed: Remove trailing commas
g++ doesn't like trailing commas in enum definitions when -pedantic.
I committed this patch to remove them from elfcpp.
Ian
2009-11-03 Ian Lance Taylor <iant@google.com>
* elfcpp.h: Remove trailing commas from enum definitions.
Index: elfcpp.h
===================================================================
RCS file: /cvs/src/src/elfcpp/elfcpp.h,v
retrieving revision 1.27
diff -u -r1.27 elfcpp.h
--- elfcpp.h 30 Oct 2009 18:49:59 -0000 1.27
+++ elfcpp.h 3 Nov 2009 15:09:16 -0000
@@ -17,7 +17,7 @@
// combinations without any restriction coming from the use of this
// file. (The Library Public License restrictions do apply in other
// respects; for example, they cover modification of the file, and
-/// distribution when not linked into a combined executable.)
+// distribution when not linked into a combined executable.)
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -390,7 +390,7 @@
// Link editor is to sort the entries in this section based on the
// address specified in the associated symbol table entry.
- SHT_ORDERED = 0x7fffffff,
+ SHT_ORDERED = 0x7fffffff
};
// The valid bit flags found in the Shdr sh_flags field.
@@ -514,7 +514,7 @@
// ARM: a THUMB function. This is not defined in ARM ELF Specification but
// used by the GNU tool-chain.
- STT_ARM_TFUNC = 13,
+ STT_ARM_TFUNC = 13
};
inline STB
@@ -755,7 +755,7 @@
DF_1_INTERPOSE = 0x400,
DF_1_NODEFLIB = 0x800,
DF_1_NODUMP = 0x1000,
- DF_1_CONLFAT = 0x2000,
+ DF_1_CONLFAT = 0x2000
};
// Version numbers which appear in the vd_version field of a Verdef