lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #5822] Handle unused arguments


From: Frédéric Bernon
Subject: [lwip-devel] [patch #5822] Handle unused arguments
Date: Wed, 28 Mar 2007 07:22:42 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

Follow-up Comment #7, patch #5822 (project lwip):

About remove any unsed arguments, it will not be possible always. By example,
in api_msg.c, in recv_udp, the prototype is defined by udp_recv, so, you can't
change it without breaking the api.

Why not about arch.h? It already give default define for PACK_STRUCT_BEGIN
and others, and it also include cc.h. So, if this default is not good for
your compiler, you can provide your own define in your cc.h (in fact, it's
more compiler than port dependant).

This default is good for me, if it's good for gcc.

#ifndef LWIP_UNUSED_ARG
#define LWIP_UNUSED_ARG(x)      (void)x
#endif  /* LWIP_UNUSED_ARG */

I think your can integrate that...


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?5822>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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