lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] Strict ANSI checking


From: Sid . Young
Subject: RE: [lwip-users] Strict ANSI checking
Date: Wed, 22 Sep 2004 13:08:28 +1000

Jan,
 
At least you can get your code to compile, on the ez80 using the Zilog compiler I can't get it to work no matter what!.
 
I would ignore warnings at first and see if you can get past the solid compile errors.
 
What is your hardware platform ?
 
 
 
Sid Young
Modertor ez80Acclaim group
 
 
-----Original Message-----
From: Jan Hyla [Yahoo Account] [mailto:address@hidden
Sent: Tuesday, 21 September 2004 4:48 PM
To: address@hidden
Subject: [lwip-users] Strict ANSI checking

Dear All,
 
After spending some time trying to compile LwIP code, I've realised that because the code quite often does not compile without warnings or even errors (under GNU I set 'treat warnings as errors'), it must have originally been compiled with minimum warning levels,or with a compiler which isn't too fussy.
 
e.g. in raw.c (1.0.0) I get:
 
 
'error: conflicting types for `raw_recv'
 
and
 
'warning: assignment from incompatible pointer type' for the function below (for the second parameter being passed)
 
 
void
raw_recv(struct raw_pcb *pcb,
         u8_t (* recv)(void *arg, struct raw_pcb *upcb, struct pbuf *p,
                      struct ip_addr *addr),
         void *recv_arg)
{
  /* remember recv() callback and user data */
  pcb->recv = recv;
  pcb->recv_arg = recv_arg;
}
Prior to being posted to 'contrib' it should really have tested to compile with strict ANSI checking.
 
I've got quite a few similar problems.
 
Questions:
1. Is the 'contrib' code supposed to be 'clean'?
2. What does everyone think about strict ANSI checking?
 
Best Regards
 
Jan
 


ALL-NEW Yahoo! Messenger - all new features - even more fun!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]