Skip to content

Commit

Permalink
Merge pull request ceph#25129 from rzarzynski/wip-common-annotate
Browse files Browse the repository at this point in the history
common: avoid the overhead of ANNOTATE_HAPPENS_* in NDEBUG builds.

Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored Nov 27, 2018
2 parents b284bcc + f24788a commit ffd8795
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 ffd8795

Please sign in to comment.