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

118:   }       - static void start_service_callback(DNSServiceRef ref, -  DNSServiceFlags flags, -  DNSServiceErrorType error, -  const char *name, -  const char *regtype, -  const char *domain, -  void *context) + static void start_service_callback(DNSServiceRef UNUSED(ref), +  DNSServiceFlags UNUSED(flags), +  DNSServiceErrorType UNUSED(error), +  const char *UNUSED(name), +  const char *UNUSED(regtype), +  const char *UNUSED(domain), +  void *UNUSED(context))   {   }   
370:   }       - static void init_service_struct(struct object *o) + static void init_service_struct(struct object *UNUSED(o))   {    THIS->service_ref = 0;   }       - static void exit_service_struct(struct object *o) + static void exit_service_struct(struct object *UNUSED(o))   {    /* Stop an existing service */    stop_service(THIS);