sw: work around mysterious MSVC warning C4258

Cleraly the variable "n" from line 999 is not in scope in
line 1054 or line 1057?

Change-Id: I8ca321e6030390ad0192e4dceb37d87b6f06f0a5