summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea2c69e)
raw | patch | inline | side by side (parent: ea2c69e)
author | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 16 Mar 2011 06:59:10 +0000 (01:59 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Mar 2011 19:31:32 +0000 (12:31 -0700) |
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>
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>
cache.h | patch | blob | history | |
convert.c | patch | blob | history |
index c7b0a28352988fec3550da78f2e1ea401810bbd4..39ca875fb54afa8ef31631d6096738c46df02ccc 100644 (file)
--- a/cache.h
+++ b/cache.h
enum auto_crlf {
AUTO_CRLF_FALSE = 0,
AUTO_CRLF_TRUE = 1,
- AUTO_CRLF_INPUT = -1,
+ AUTO_CRLF_INPUT = -1
};
extern enum auto_crlf auto_crlf;
diff --git a/convert.c b/convert.c
index d5aebed48df3387e966a23b6ee460dc2244f728e..7eb51b16ed03e650f3af11383c5c43c00d7d9812 100644 (file)
--- a/convert.c
+++ b/convert.c
CRLF_TEXT,
CRLF_INPUT,
CRLF_CRLF,
- CRLF_AUTO,
+ CRLF_AUTO
};
struct text_stat {