[zeromq-dev] weirdness

Mikko Koppanen mikko.koppanen at gmail.com
Wed Feb 2 18:20:43 CET 2011


On Wed, Feb 2, 2011 at 6:16 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> Martin Lucina wanted to somehow force valgrind not to display those
> errors but he haven't done so yet.


Hello,

there is a compile-time constant called ZMQ_MAKE_VALGRIND_HAPPY, which
does following things:

object.cpp:
....
    command_t cmd;
#if defined ZMQ_MAKE_VALGRIND_HAPPY
    memset (&cmd, 0, sizeof (cmd));
#endif
....


This might be 2.1.x only.



-- 
Mikko Koppanen



More information about the zeromq-dev mailing list