Commit 416b5d366d79431d07d2dff693f4b70d679ffc42
1 parent
d8b20157
Avoid "unused variable" compiler warning.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2255 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
1 deletions
hw/smc91c111.c
... | ... | @@ -159,7 +159,6 @@ static void smc91c111_do_tx(smc91c111_state *s) |
159 | 159 | int len; |
160 | 160 | int control; |
161 | 161 | int add_crc; |
162 | - uint32_t crc; | |
163 | 162 | int packetnum; |
164 | 163 | uint8_t *p; |
165 | 164 | |
... | ... | @@ -192,6 +191,8 @@ static void smc91c111_do_tx(smc91c111_state *s) |
192 | 191 | about. */ |
193 | 192 | add_crc = (control & 0x10) || (s->tcr & TCR_NOCRC) == 0; |
194 | 193 | if (add_crc) { |
194 | + uint32_t crc; | |
195 | + | |
195 | 196 | crc = crc32(~0, p, len); |
196 | 197 | memcpy(p + len, &crc, 4); |
197 | 198 | len += 4; | ... | ... |