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 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With