Unused variables removed to make clang happy.
This is only used when compiled with AHMED.

So we move it inside to stop a warning.
This is an intel only pragma

So enable it only when using intel to stop
warnings.