Reputation: 393
Does anybody know if there is some kind of pedantic flag in VS2013 to enforce c89 standard variable declarations. I know everyone will think me a nut but I liked it that way once I got used to it.
Upvotes: 2
Views: 278
Reputation: 37924
There seems to be no such option in current incarnation of VS 2013 along with cl
compiler. There is /Za
switch to disable language extensions, but C99 mixing declarations with code is new feature in VS 2013, that is defined by language itself.
See also Disabling mixed declarations and C code in VS2013.
Upvotes: 2