Bug 10239 - dlfcn.h triggers "error: comma at end of enumerator list" with g++ -pedantic
Summary: dlfcn.h triggers "error: comma at end of enumerator list" with g++ -pedantic
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P3 minor
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-04 14:39 UTC by J.H.M. Dassen (Ray)
Modified: 2014-07-01 16:40 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J.H.M. Dassen (Ray) 2009-06-04 14:39:41 UTC
From 14efc88f2db6f665ece5a36b65875ce29b2e50c5 Mon Sep 17 00:00:00 2001
From: J.H.M. Dassen (Ray) <rdassen@redhat.com>
Date: Thu, 4 Jun 2009 16:25:29 +0200
Subject: [PATCH] Removed comma at end of enumerator list.

This comma caused
	g++ -pedantic -c /usr/include/dlfcn.h -o /dev/null
to error out.
---
 dlfcn/dlfcn.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlfcn/dlfcn.h b/dlfcn/dlfcn.h
index 7e373ed..e9dd16d 100644
--- a/dlfcn/dlfcn.h
+++ b/dlfcn/dlfcn.h
@@ -164,7 +164,7 @@ enum
        segment, or if the calling thread has not allocated a block for it.  */
     RTLD_DI_TLS_DATA = 10,
 
-    RTLD_DI_MAX = 10,
+    RTLD_DI_MAX = 10
   };
 
 
-- 
1.6.3.1
Comment 1 Ulrich Drepper 2009-06-09 14:58:38 UTC
Changed in git.