diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-01-27 11:58:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-01-27 11:58:56 -0800 |
commit | 58ebd9865d2bb9d42842fbac5a1c4eae49e92859 (patch) | |
tree | d693407408e24780c12c97d9e7e08443c966bed7 /vcs-svn | |
parent | d47553665833935157292a71248278a40e32c320 (diff) | |
download | git-58ebd9865d2bb9d42842fbac5a1c4eae49e92859.tar.gz git-58ebd9865d2bb9d42842fbac5a1c4eae49e92859.tar.xz |
vcs-svn/svndiff.c: squelch false "unused" warning from gcc
Curiously, pre_len given to read_length() does not trigger the same warning
even though the code structure is the same. Most likely this is because
read_offset() is used only once and inlining it will make gcc realize that
it has a chance to do more flow analysis. Alas, the analysis is flawed, so
it does not help X-<.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'vcs-svn')
-rw-r--r-- | vcs-svn/svndiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcs-svn/svndiff.c b/vcs-svn/svndiff.c index 9ee41bbc9..1647c1a78 100644 --- a/vcs-svn/svndiff.c +++ b/vcs-svn/svndiff.c @@ -295,7 +295,7 @@ int svndiff0_apply(struct line_buffer *delta, off_t delta_len, if (read_magic(delta, &delta_len)) return -1; while (delta_len) { /* For each window: */ - off_t pre_off; + off_t pre_off = pre_off; /* stupid GCC... */ size_t pre_len; if (read_offset(delta, &pre_off, &delta_len) || |