From cc5f8d12d115bc7c5fcfe2d6a3ac883a164ee9a7 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Thu, 20 Sep 2012 21:14:13 +0000 Subject: [PATCH] fixed unused var warning --- bochs/iodev/network/ne2k.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bochs/iodev/network/ne2k.cc b/bochs/iodev/network/ne2k.cc index d71093e79..acef37e9e 100644 --- a/bochs/iodev/network/ne2k.cc +++ b/bochs/iodev/network/ne2k.cc @@ -1608,7 +1608,7 @@ void bx_ne2k_c::rx_frame(const void *buf, unsigned io_len) int pages; int avail; unsigned idx; - int wrapped; +//int wrapped; int nextpage; unsigned char pkthdr[4]; unsigned char *pktbuf = (unsigned char *) buf; @@ -1634,7 +1634,7 @@ void bx_ne2k_c::rx_frame(const void *buf, unsigned io_len) } else { avail = (BX_NE2K_THIS s.page_stop - BX_NE2K_THIS s.page_start) - (BX_NE2K_THIS s.curr_page - BX_NE2K_THIS s.bound_ptr); - wrapped = 1; +// wrapped = 1; } // Avoid getting into a buffer overflow condition by not attempting