Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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?

like image 594
fnokke Avatar asked Nov 26 '25 09:11

fnokke


1 Answers

You can find the Microsoft Extensions to C and C++ page at MSDN.

like image 97
Bo Persson Avatar answered Nov 28 '25 23:11

Bo Persson