From: Radoslaw Zarzynski Date: Fri, 16 Nov 2018 13:46:32 +0000 (+0100) Subject: common: avoid the overhead of ANNOTATE_HAPPENS_* in NDEBUG builds. X-Git-Tag: v14.1.0~796^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f24788ad325a1dd2df10d56e8fcbd4870bd4b9d8;p=ceph.git common: avoid the overhead of ANNOTATE_HAPPENS_* in NDEBUG builds. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/common/valgrind.h b/src/common/valgrind.h index 8efa60bf057e..1faa9cd85599 100644 --- a/src/common/valgrind.h +++ b/src/common/valgrind.h @@ -6,7 +6,7 @@ #include "acconfig.h" -#ifdef HAVE_VALGRIND_HELGRIND_H +#if defined(HAVE_VALGRIND_HELGRIND_H) && !defined(NDEBUG) #include #else #define ANNOTATE_HAPPENS_AFTER(x) (void)0