buglwIP - A Lightweight TCP/IP stack - Bugs: bug #2881, gcc Compiler Warning in etharp.c

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2881: gcc Compiler Warning in etharp.c

Submitted by:  Martin Glunz <bullshot>
Submitted on:  Thu 20 Mar 2003 10:11:43 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Thu 20 Mar 2003 10:11:43 AM UTC, original submission:

gcc produces warning when compiling etharp.c:

../lwip-cvs/src/netif/etharp.c: In function `etharp_query':
../lwip-cvs/src/netif/etharp.c:651: warning: statement with no effect

Suggested change:

--- /home/mg/lwip/lwip/src/netif/etharp.c Tue Mar 18 15:48:40 2003
+++ lwip-cvs/src/netif/etharp.c Thu Mar 20 11:09:57 2003
@@ -648,7 +648,7 @@
srcaddr = (struct eth_addr *)netif->hwaddr;
i = 0;
/* bail out if this IP address is pending */
- for(i; i < ARP_TABLE_SIZE; ++i) {
+ for(; i < ARP_TABLE_SIZE; ++i) {
if(ip_addr_cmp(ipaddr, &arp_table[i].ipaddr)) {
if (arp_table[i].state == ETHARP_STATE_PENDING) {
DEBUGF(ETHARP_DEBUG, ("etharp_query: requested IP already pending\n"));

Martin Glunz <bullshot>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 21 Mar 2003 10:49:52 AM UTCjaniStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1