##// END OF EJS Templates
parsers.c: remove warning: 'size' may be used uninitialized in this function...
parsers.c: remove warning: 'size' may be used uninitialized in this function Some compilers / compiler options (such as gcc 4.7) would emit warnings: mercurial/parsers.c: In function 'pack_dirstate': mercurial/parsers.c:306:18: warning: 'size' may be used uninitialized in this function [-Wmaybe-uninitialized] mercurial/parsers.c:306:12: warning: 'mode' may be used uninitialized in this function [-Wmaybe-uninitialized] It is apparently not smart enough to figure out how the 'err' arithmetics makes sure that it can't happen. 'err' is now replaced with simple checks and goto. That might also help the optimizer when it is inlining getintat().

File last commit:

r14516:842a9179 default
r17165:249cc4ec default
Show More
test-ui-color.py.out
5 lines | 55 B | text/plain | TextLexer
/ tests / test-ui-color.py.out
Brodie Rao
color: call correct superclass method in write_err...
r11732 warning
error
'buffered\n'
Idan Kamara
color: check if ui is already a subclass of colorui before wrapping it...
r14516 colored? True
colored? True