author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | |
Sun, 11 Sep 2011 19:39:32 +0000 (20:39 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 9 Oct 2011 20:28:04 +0000 (13:28 -0700) | ||
commit | 27c0f768843b6d844674f1fb8dc2676d830b56e3 | |
tree | 8f5e9fba34ffd5c042aee1b30118869feff13650 | tree | snapshot |
parent | 16f5bfcf65b46260f3a4fc66769e8b5cfd18a11a | commit | diff |
Fix some "variable might be used uninitialized" warnings
In particular, gcc complains as follows:
CC tree-walk.o
tree-walk.c: In function `traverse_trees':
tree-walk.c:347: warning: 'e' might be used uninitialized in this \
function
CC builtin/revert.o
builtin/revert.c: In function `verify_opt_mutually_compatible':
builtin/revert.c:113: warning: 'opt2' might be used uninitialized in \
this function
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In particular, gcc complains as follows:
CC tree-walk.o
tree-walk.c: In function `traverse_trees':
tree-walk.c:347: warning: 'e' might be used uninitialized in this \
function
CC builtin/revert.o
builtin/revert.c: In function `verify_opt_mutually_compatible':
builtin/revert.c:113: warning: 'opt2' might be used uninitialized in \
this function
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/revert.c | diff | blob | history | |
tree-walk.c | diff | blob | history |