VS 2019 16.8.4 gives me this warning with /W4: warning C4189: 'i': local variable is initialized but not referenced
You probably need to enable Code Analysis on Build under Code Analysis in the project options.