[PATCH 2 of 2] pathencode: eliminate comma at end of enum list to avoid pedantic warning

Yuya Nishihara yuya at tcha.org
Thu Apr 18 11:39:11 CDT 2013


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1366302861 -32400
#      Fri Apr 19 01:34:21 2013 +0900
# Node ID 79d9bc2615c111802045274474bde61ff81d8a11
# Parent  d81cbdba4275b4bbba564993c2918378ea9d7388
pathencode: eliminate comma at end of enum list to avoid pedantic warning

diff --git a/mercurial/pathencode.c b/mercurial/pathencode.c
--- a/mercurial/pathencode.c
+++ b/mercurial/pathencode.c
@@ -45,7 +45,7 @@ enum path_state {
 	H,       /* ".h" */
 	HGDI,    /* ".hg", ".d", or ".i" */
 	SPACE,
-	DEFAULT, /* byte of a path component after the first */
+	DEFAULT  /* byte of a path component after the first */
 };
 
 /* state machine for dir-encoding */
@@ -53,7 +53,7 @@ enum dir_state {
 	DDOT,
 	DH,
 	DHGDI,
-	DDEFAULT,
+	DDEFAULT
 };
 
 static inline int inset(const uint32_t bitset[], char c)


More information about the Mercurial-devel mailing list