Skip to content

Commit 58ebd98

Browse files
committed
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 <[email protected]>
1 parent d475536 commit 58ebd98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vcs-svn/svndiff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ int svndiff0_apply(struct line_buffer *delta, off_t delta_len,
295295
if (read_magic(delta, &delta_len))
296296
return -1;
297297
while (delta_len) { /* For each window: */
298-
off_t pre_off;
298+
off_t pre_off = pre_off; /* stupid GCC... */
299299
size_t pre_len;
300300

301301
if (read_offset(delta, &pre_off, &delta_len) ||

0 commit comments

Comments
 (0)