]> git.openfabrics.org - ~shefty/libibverbs.git/commit
Fix a compiler warnings with NVALGRIND master
authorBart Van Assche <bvanassche@acm.org>
Sun, 7 Aug 2011 18:05:30 +0000 (20:05 +0200)
committerRoland Dreier <roland@purestorage.com>
Thu, 7 Jun 2012 22:11:40 +0000 (15:11 -0700)
commitc4f087527d3c3bc50f6a2531e7b54241a9df9e86
tree3441ce7abc8e145f2eb9ef7110fe2a69010bd8f6
parent8b2ffc598bd7f8294f3653cab430146985040739
Fix a compiler warnings with NVALGRIND

Fix compiler warnings when compiling with NVALGRIND defined and the
latest Valgrind header files.  Recently the Valgrind client request
implementation has been modified in order to not trigger compiler
warnings when building with gcc 4.6.  A side effect of that change is
that Valgrind client request macros that return a value have to be
cast to void in order to avoid a compiler warning.

For more information, see also:
* Valgrind manual about VALGRIND_MAKE_MEM_DEFINED (http://valgrind.org/docs/manual/mc-manual.html).
* Valgrind trunk r11755 (http://article.gmane.org/gmane.comp.debugging.valgrind.devel/13489).

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
src/cmd.c
src/ibverbs.h
src/verbs.c