summaryrefslogtreecommitdiff
path: root/argv-array.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2013-03-21 07:10:28 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-03-21 14:06:38 -0700
commitcbfd5e1cbb539b82a34195efd0edde20d45a6439 (patch)
treee61d22ec111804500b0f6396269ac3e9008e3bd1 /argv-array.c
parentfast-import: use pointer-to-pointer to keep list tail (diff)
downloadtgif-cbfd5e1cbb539b82a34195efd0edde20d45a6439.tar.xz
drop some obsolete "x = x" compiler warning hacks
In cases where the setting and access of a variable are protected by the same conditional flag, older versions of gcc would generate a "might be used unitialized" warning. We silence the warning by initializing the variable to itself, a hack that gcc recognizes. Modern versions of gcc are smart enough to get this right, going back to at least version 4.3.5. gcc 4.1 does get it wrong in both cases, but is sufficiently old that we probably don't need to care about it anymore. Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'argv-array.c')
0 files changed, 0 insertions, 0 deletions