Branch: Tag:

2012-12-30

2012-12-30 15:37:27 by 0

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

669:      /*** layer object : init and exit *************************/    - static void init_layer(struct object *dummy) + static void init_layer(struct object *UNUSED(dummy))   {    THIS->xsize=0;    THIS->ysize=0;
692:    smear_color(THIS->sfill_alpha,THIS->fill_alpha,SNUMPIXS);   }    - static void free_layer(struct layer *l) + static void free_layer(struct layer *UNUSED(l))   {    if (THIS->image) free_object(THIS->image);    if (THIS->alpha) free_object(THIS->alpha);
703:    THIS->alp=NULL;   }    - static void exit_layer(struct object *dummy) + static void exit_layer(struct object *UNUSED(dummy))   {    free_layer(THIS);   }