static FAST_FUNC int fileAction(const char *pathname,
struct stat *sb UNUSED_PARAM,
void *modname_to_match,
int depth UNUSED_PARAM){...}
what does "int depth UNUSED_PARAM" mean ?
static FAST_FUNC int fileAction(const char *pathname,
struct stat *sb UNUSED_PARAM,
void *modname_to_match,
int depth UNUSED_PARAM){...}
what does "int depth UNUSED_PARAM" mean ?
Copyright © 2021 Jogjafile Inc.
From
include/platform.h
in Busybox-1.18.3:And from the GCC documentation:
So, it is just a way to tell both the human programmers and the compiler that the variable is not necessarily used. Otherwise, the compiler may warn you about an unused variable.
Presumably,
fileAction
requires thedepth
parameter to be compatible with a function pointer type or other API constraints butfileAction
doesn't actually use the parameter.