This is just kludge to avoid compiler warnings. For example, this code will emit
warning: unused parameter 'a' [-Wunused-parameter] warning: unused parameter 'b' [-Wunused-parameter] warning: unused parameter 'c' [-Wunused-parameter]
when compiling with gcc -Wall -Wextra if kludge is not used. However, there are cleaner ways to achieve this. You can omit parameter names:
void f(A*, B&, C*) { }
The gcc-specificc specification and somewhat verbal is to use the unused attribute for each unused parameter:
void f(A* a __attribute__((unused)), B& b, C* c) { }
source share