##// 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:

r14971:0b21ae0a default
r17165:249cc4ec default
Show More
sitecustomize.py
5 lines | 111 B | text/x-python | PythonLexer
Dirkjan Ochtman
tests: use external coverage, mandate newer version...
r10648 try:
import coverage
Augie Fackler
tests: use getattr instead of hasattr
r14971 getattr(coverage, 'process_startup', lambda: None)()
Dirkjan Ochtman
tests: use external coverage, mandate newer version...
r10648 except ImportError:
pass