The number 4 is considered one of the potentially dangerous numbers when porting from 32 to 64 bits, so a warning about the assignment of the constant 4. Other numbers are listed in the table by the link that you provided. With examples of how this can be dangerous.
You can suppress an individual warning by adding // - V112 at the end of the line, you are 100% OK.
size_t const n = 4;
This will alert you, and you can focus on your work again.
As for int a[4] = {}; PVS-Studio considers this a special case for which it does not issue a warning. Why this is not taken into account in the first case, I do not know. But this looks like a tough exception for a really specific case.
If you are not building 64-bit assemblies, I assume that you can now turn off the warning alltogether. But be careful - it proceeds from the mind, proceeding from the mind.
source share