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

login
register
mail settings
Submitter Yuya Nishihara
Date April 18, 2013, 4:39 p.m.
Message ID <79d9bc2615c111802045.1366303151@gimlet>
Download mbox | patch
Permalink /patch/1425/
State Accepted
Commit 55c6ab8163ecf3883f9745a7e103947a5f2eec5f
Headers show

Comments

Yuya Nishihara - April 18, 2013, 4:39 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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

Patch

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)