author | Sebastian Schuberth <sschuberth@gmail.com> | |
Tue, 18 Oct 2011 16:25:50 +0000 (18:25 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 18 Oct 2011 17:34:07 +0000 (10:34 -0700) | ||
commit | 185528a859170a659ae8359d13540211775e3056 | |
tree | 77cd21ec4b3e0d5a4996a334bff1f612f46de495 | tree | snapshot |
parent | bb34c5aabe9f8d86a40d5ab8518fc78602264179 | commit | diff |
inet_ntop.c: Work around GCC 4.6's detection of uninitialized variables
GCC 4.6 claims that
error: 'best.len' may be used uninitialized in this function
so silence that warning which is treated as an error by also initializing
the "len" members of the struct.
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
GCC 4.6 claims that
error: 'best.len' may be used uninitialized in this function
so silence that warning which is treated as an error by also initializing
the "len" members of the struct.
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/inet_ntop.c | diff | blob | history |