Branch: Tag:

2014-12-04

2014-12-04 19:23:02 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.)

1253:    /* p->done=0; */   }    - static void init_pipe_struct(struct object *o) + static void init_pipe_struct(struct object *UNUSED(o))   {    debug_malloc_touch(o);   
1273:    THIS->sent=0;   }    - static void exit_pipe_struct(struct object *o) + static void exit_pipe_struct(struct object *UNUSED(o))   {    close_and_free_everything(NULL,THIS);   }    - static void exit_output_struct(struct object *obj) + static void exit_output_struct(struct object *UNUSED(obj))   {    struct output *o;   
1310:    }   }    - static void init_output_struct(struct object *ob) + static void init_output_struct(struct object *UNUSED(ob))   {    struct output *o;    debug_malloc_touch(ob);