UNREFERENCED() fix:

Because the 'UNREFERENCED' macro generates benign do-nothing code to reference the variable in question (in order to silence the compiler warning), it must always FOLLOW any/all variable declarations.  It cannot come first (unless you have no local vars).