in a custom allocator like int *alloczero() { int *p = malloc(sizeof *p);
if (*p) *p = 0; return p; } valgrind reports 'conditional jump..' at line 'if (*p)', which is correct and easy to suppress but later whereever i read *p i get '..uninitialised' value errors eventhough it's clearly provably 0 now i'm wondering how to suppress these warnings in a way that valgrind understands that *p is 0 (the check is necessary because in the code where it is used the page is often zeroed out and we want to aviod dirty pages) ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users