Treat ALL warnings as errors from pragma
John
76
Reputation points
Hi,
I tried: #pragma warning(error)
It showed: warning C4081: expected ':'; found ')'
I tried: #pragma warning(error:)
It has no effect.
Seems it can only treat the specified warnings as errors.
Is there a way to treat all C++ compilation warnings as errors from pragma?
Thanks.