This commit fixes the unused varible warning

By making a function UNUSED, and passing the variable
to that funtion. The function will just as a dummy stub
and do nothing.

I also tried doing the following
    UNUSED(w);

but this would generate a warning for unused function.