I use massif, sgcheck and memcheck valgrind's modules to check a c/c++ project. I would like to know if it is possible to make valgrind ignore part of code. When I run it on my project I have something like 248 different "false" errors generated by opencv call. It is normal but currently I can't really avoid this call, that why I would like to make valgrind ignore this part of code.
I try to do generate a file to "suppress" his error by adding --gen-suppressions=all --log-file=valgrind.out
to my command line to generated a file to ignore the error. But there is some "hand process" to do, like remove 248 bloc in the log file, and I would like to avoid it.
So : do you know if there is a way (a bit like ifdef or ifndef maybe) to make valgrind ignore a part of code ?
Thx !