How to lower error check level in Intel C\C++ compiler

149 views Asked by At

I'm trying to compile a simple test project with Intel C\C++ compiler on Visual Studio 2013.

I have coded this test on linux, where gcc compiles the code without any error, and the application runs fine, but intel compiler on VS 2013 returns me these errors

ID      Type                            Sources     Modules     Object Size State
P1      Unhandled application exception source.c    MyTest.exe              Not fixed
P2      Memory leak                     source.c    MyTest.exe  23984       New
P3      Memory leak                     source.c    MyTest.exe  19980008    New
P4      Invalid memory access           source.c    MyTest.exe              Not fixed
P5      Invalid memory access           source.c    MyTest.exe              Not fixed
P6      Uninitialized memory access     source.c    MyTest.exe              Not fixed

This seems caused by the fact I don't deallocate some previous allocated memory blocks... since this is a test application and I don't want to spend time finding what missed deallocation causes the issue, I'm wondering if there is a way to lower the intel compiler "severity" so that it can ignore these issues (as does gcc).

1

There are 1 answers

6
abelenky On

Memory Leak you can probably ignore if this is just a test-app.

However, how do you justify accessing Uninitalized Memory (P6), Invalid Memory Access (P4, P5) and Unhandled Exceptions (P1)??

Those seem rather serious to me, even for a test-app.