From patchwork Thu Apr 18 16:39:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2, of, 2] pathencode: eliminate comma at end of enum list to avoid pedantic warning From: Yuya Nishihara X-Patchwork-Id: 1425 Message-Id: <79d9bc2615c111802045.1366303151@gimlet> To: mercurial-devel@selenic.com Date: Fri, 19 Apr 2013 01:39:11 +0900 # HG changeset patch # User Yuya Nishihara # 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)