views:

45

answers:

1

I have read there are a few flags in gcc to do catch some of the type violations for calls to printf, I haven't been able to find if there are similar ways to achieve this in Visual C++'s compiler (any version of VC++, from 2005 onward).

+3  A: 

As far as I know, VC++ doesn't have it. MS appears to have done almost no new development specifically for the C compiler for years now -- almost the only updates have been mostly accidental side-effects of updates to the C++ compiler. Since this would see little use in C++ it hasn't happened, and I wouldn't expect it to happen any time soon either.

Jerry Coffin