Skip to content

Commit

Permalink
common: avoid the overhead of ANNOTATE_HAPPENS_* in NDEBUG builds.
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Zarzynski <[email protected]>
  • Loading branch information
rzarzynski committed Nov 16, 2018
1 parent c1bff26 commit f24788a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/valgrind.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "acconfig.h"

#ifdef HAVE_VALGRIND_HELGRIND_H
#if defined(HAVE_VALGRIND_HELGRIND_H) && !defined(NDEBUG)
#include <valgrind/helgrind.h>
#else
#define ANNOTATE_HAPPENS_AFTER(x) (void)0
Expand Down

0 comments on commit f24788a

Please sign in to comment.