HomeFreeBSD

Fix the following warning from gcc 4.2 in usr.bin/diff:

Description

Fix the following warning from gcc 4.2 in usr.bin/diff:

usr.bin/diff/diffreg.c: In function 'change':
usr.bin/diff/diffreg.c:1085: warning: 'i' may be used uninitialized in this function

This version of gcc is not smart enough to see that 'i' cannot actually
be used unitialized. However, the variable is confusingly re-used, so
it is better to give it another name, and clearly initialize it before
attempting to use it.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D10484

Details

Provenance
dimAuthored on
Reviewer
bapt
Differential Revision
D10484: Alternate solution to D10462
Parents
rS317380: Add support for dumping bcma/siba EROM tables to the console via a new
Branches
Unknown
Tags
Unknown