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.)

599:   }       - static void init_gz_deflate(struct object *o) + static void init_gz_deflate(struct object *UNUSED(o))   {    mt_init(& THIS->lock);    MEMSET(& THIS->gz, 0, sizeof(THIS->gz));
611:    THIS->epilogue = NULL;   }    - static void exit_gz_deflate(struct object *o) + static void exit_gz_deflate(struct object *UNUSED(o))   {   /* mt_lock(& THIS->lock); */    deflateEnd(&THIS->gz);
1014:    push_int(0);   }    - static void init_gz_inflate(struct object *o) + static void init_gz_inflate(struct object *UNUSED(o))   {    mt_init(& THIS->lock);    MEMSET(& THIS->gz, 0, sizeof(THIS->gz));
1026:    THIS->epilogue = NULL;   }    - static void exit_gz_inflate(struct object *o) + static void exit_gz_inflate(struct object *UNUSED(o))   {   /* mt_lock(& THIS->lock); */    inflateEnd(& THIS->gz);