enums: omit trailing comma for portability
Since v1.7.2-rc0~23^2~2 (Add per-repository eol normalization, 2010-05-19), building with gcc -std=gnu89 -pedantic produces warnings like the following: convert.c:21:11: warning: comma at end of enumerator list [-pedantic] gcc is right to complain --- these commas are not permitted in C89. In the spirit of v1.7.2-rc0~32^2~16 (2010-05-14), remove them. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Mar 16, 2011 at 01:59 UTC
c9b6782a08a728908bac8dc51def3607b3daa2a9
2 files changed
+2
-2
cache.h
+1
-1
@@ -570,7 +570,7 @@ extern enum safe_crlf safe_crlf;
570
enum auto_crlf {
571
AUTO_CRLF_FALSE = 0,
572
AUTO_CRLF_TRUE = 1,
573
- AUTO_CRLF_INPUT = -1,
573
+ AUTO_CRLF_INPUT = -1
574
};
575
576
extern enum auto_crlf auto_crlf;
convert.c
+1
-1
@@ -18,7 +18,7 @@ enum action {
18
CRLF_TEXT,
19
CRLF_INPUT,
20
CRLF_CRLF,
21
- CRLF_AUTO,
21
+ CRLF_AUTO
22
};
23
24
struct text_stat {