Branch: Tag:

2012-12-30

2012-12-30 15:37:27 by Jonas Walldén <jonasw@roxen.com>

Wrap unused parameters in UNUSED(), and debug-only parameters in DEBUGUSED(), to cut
down on compiler warnings. The macro also renames parameters to catch accidental use.
(There are more places to clean up but I don't want to modify code that isn't compiling
on my machine.)

280:    push_string(make_shared_binary_string( retval, retlen ));   }    - static void init_yp_struct( struct object *o ) + static void init_yp_struct( struct object *UNUSED(o) )   {    this->domain = 0;    this->last_size = 0;   }    - static void exit_yp_struct( struct object *o ) + static void exit_yp_struct( struct object *UNUSED(o) )   {    if(this->domain)    {