From my own recollection, the construction
(void) var;
for unused variables is specifically to silence certain versions of lint which would otherwise complain.