Thread (7 messages) flat view 7 messages, 3 authors, 2016-06-15

Re: Issue with compiling git 1.8.4 under uclibc with gcc 4.6.3

From: Lukas Fleischer <hidden>
Date: 2016-06-15 22:58:31

On Mon, Aug 26, 2013 at 02:29:12PM -0600, Lance wrote:
[...]
quoted
quoted
    CC config.o
config.c: In function 'get_next_char':
config.c:220:14: error: expected identifier before '(' token
config.c:220:14: error: expected statement before ')' token
config.c:220:14: error: expected statement before ')' token
config.c:224:11: error: expected identifier before '(' token
Does changing line 220 of config.c to

    int c = (cf->fgetc)(cf);

fix it?
I also had to change line 224 to the following

                c = (cf->fgetc)(cf);

Once both places were changes, it compiled successfully.
Sounds like a parser bug to me. Should we patch this in Git in order to
make it compile with (broken?) GCC versions?
[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help