Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

My parasoft test check un-reachable code, how to disable it?

optac
optac Posts: 1
edited March 2024 in C/C++test

I get misra2012 errors from code that is not suppose to be compiled.
for example -

returns

it is a fact that only 1 line can be in the compiled code. thus parasoft test shall return only 1 error.
but for some reason I get 5 errors, no matter what is the defined value.

how to disable this behavior?