diff options
author | eadler <eadler@FreeBSD.org> | 2012-01-20 01:38:44 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-01-20 01:38:44 +0000 |
commit | 96a3210b4f3fe9c22731c077cc4956eec4694fd2 (patch) | |
tree | 17ddbe6299d06fd9e84ac150a5b1fd3b6d3de815 | |
parent | 18616e8fc92b66e7ef9d563a282803b61da62f76 (diff) | |
download | FreeBSD-src-96a3210b4f3fe9c22731c077cc4956eec4694fd2.zip FreeBSD-src-96a3210b4f3fe9c22731c077cc4956eec4694fd2.tar.gz |
Fix warning when compiling with gcc46:
error: variable 'i2c' set but not used
Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days
-rw-r--r-- | usr.sbin/i2c/i2c.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/i2c/i2c.c b/usr.sbin/i2c/i2c.c index 68e6ca28..3a61aa5 100644 --- a/usr.sbin/i2c/i2c.c +++ b/usr.sbin/i2c/i2c.c @@ -464,7 +464,7 @@ main(int argc, char** argv) { struct iiccmd cmd; struct options i2c_opt; - char *dev, *skip_addr, *err_msg, *i2c_buf; + char *dev, *skip_addr, *i2c_buf; int error, chunk_size, i, j, ch; errno = 0; @@ -474,7 +474,6 @@ main(int argc, char** argv) chunk_size = 16; dev = I2C_DEV; - err_msg = NULL; /* Default values */ i2c_opt.addr_set = 0; |