Which are the ANSI C language extensions disabled by the /Za option in Visual Studio?
I work in a cross-platform environment where many tools (written in C) are compiled by both Visual Studio on Windows and GCC on Linux, as some co-workers prefer to debug with Visual Studio and some with Eclipse/GDB, etc. on Linux.
When we recently relaxed开发者_JS百科 the warning levels for these internal tools for GCC, reverting basically to the "default" warnings + -O3
we got a mismatch in error-level compared to Visual Studio.
Is there a way to get the specific language extensions disabled by the /Za
switch in Visual Studio, so that we can align the compilation errors? It would be nice to be able to check-in after testing compilation with GCC without compile-break in Visual Studio.
So far I know that Visual Studio by default allows C++ style comments. What else?
You can find the Microsoft Extensions to C and C++ page at MSDN.
精彩评论