Branch: Tag:


2012-12-30 15:37:27 by Jonas Walldén <>

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

2218:    PUSH_REDUCED(res);   }    - static void init_mpz_glue(struct object *o) + static void init_mpz_glue(struct object * UNUSED(o))   {   #ifdef PIKE_DEBUG    if(!fp) Pike_fatal("ZERO FP\n");
2227:    mpz_init(THIS);   }    - static void exit_mpz_glue(struct object *o) + static void exit_mpz_glue(struct object *UNUSED(o))   {   #ifdef PIKE_DEBUG    if(!fp) Pike_fatal("ZERO FP\n");
2306:    return ret;   }    - static void pike_mp_free (void *ptr, size_t size) + static void pike_mp_free (void *ptr, size_t UNUSED(size))   {    free (ptr);   }