author | Junio C Hamano <gitster@pobox.com> | |
Thu, 15 Dec 2011 18:10:11 +0000 (10:10 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 15 Dec 2011 18:10:11 +0000 (10:10 -0800) | ||
commit | 335c6e403d862913846661638af6e184055f6db5 | |
tree | 306a7ef7ebc572e76f479283efaab98c6c3eaa5d | tree | snapshot |
parent | 3d0b05176f0539b8d71e712016c367768fc046d5 | commit | diff |
checkout_merged(): squelch false warning from some gcc
gcc 4.6.2 (there may be others) does not realize that the variable "mode"
can never be used uninitialized in this function and issues a false warning
under -Wuninitialized option.
Squelch it with an unnecessary initialization; it is not like a single
assignment matters to the performance in this codepath that writes out
to the filesystem with checkout_entry() anyway.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gcc 4.6.2 (there may be others) does not realize that the variable "mode"
can never be used uninitialized in this function and issues a false warning
under -Wuninitialized option.
Squelch it with an unnecessary initialization; it is not like a single
assignment matters to the performance in this codepath that writes out
to the filesystem with checkout_entry() anyway.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c | diff | blob | history |