summaryrefslogtreecommitdiff
path: root/linear-assignment.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2021-08-09 18:47:42 -0400
committerJohannes Schindelin <johannes.schindelin@gmx.de>2023-03-12 20:31:54 +0100
commit18bc8eb7b51f9249fd2d57aa09f2aa959dae14a2 (patch)
treeda2e4a245d039f959821232c30972ede9219240a /linear-assignment.c
parent394a759d2b5f0a1a1908c820cf142f45cb78718c (diff)
downloadgit-18bc8eb7b51f9249fd2d57aa09f2aa959dae14a2.tar.gz
range-diff: drop useless "offset" variable from read_patches()
The "offset" variable was was introduced in 44b67cb62b (range-diff: split lines manually, 2019-07-11), but it has never done anything useful. We use it to count up the number of bytes we've consumed, but we never look at the result. It was probably copied accidentally from an almost-identical loop in apply.c:find_header() (and the point of that commit was to make use of the parse_git_diff_header() function which underlies both). Because the variable was set but not used, most compilers didn't seem to notice, but the upcoming clang-14 does complain about it, via its -Wunused-but-set-variable warning. Signed-off-by: Jeff King <peff@peff.net> Acked-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'linear-assignment.c')
0 files changed, 0 insertions, 0 deletions