Grincheux thank you for appreciation.
the operator
sizeof gives a constant result. So the behavior is the same as for the
#define.
The workaround to remove the annoyance are 2 (choose only one):
- Mask the warning using the pragma
- Or don't inline safe functions defining the symbol STRSAFE_LIB.
If you choose the first case use:
#pragma warn(disable:2154)
For the second:
#define STRSAFE_LIB 1
#include <Strsafe.h>