From: Bart Van Assche Date: Sun, 10 Oct 2010 18:53:00 +0000 (+0000) Subject: Let the macro ANNOTATE_BENIGN_RACE_STATIC() do what the comment above that macro... X-Git-Tag: svn/VALGRIND_3_6_0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54644b12875741612764882fcc82cbfc61d46ab2;p=thirdparty%2Fvalgrind.git Let the macro ANNOTATE_BENIGN_RACE_STATIC() do what the comment above that macro says what it does. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11421 --- diff --git a/drd/drd.h b/drd/drd.h index 28deff31eb..370ef9297c 100644 --- a/drd/drd.h +++ b/drd/drd.h @@ -468,7 +468,8 @@ inline T ANNOTATE_UNPROTECTED_READ(const volatile T& x) { public: \ static_var##_annotator() \ { \ - ANNOTATE_BENIGN_RACE(&static_var, #static_var ": " description); \ + ANNOTATE_BENIGN_RACE_SIZED(&static_var, sizeof(static_var), \ + #static_var ": " description); \ } \ } the_##static_var##_annotator; \ }