Add volatile qualifier to AnnotateBenignRaceSized()'s address argument.
This matches how it's defined in absl/base/dynamic_annotations.h and
fixes an error with conflicting declarations when both perfetto headers
and absl headers are included.
Bug: chromium:1409870
Change-Id: I6067f2cf94d7d47113d86874a4555ad58a72f30c
diff --git a/include/perfetto/ext/base/thread_annotations.h b/include/perfetto/ext/base/thread_annotations.h
index beb8c45..aaf291f 100644
--- a/include/perfetto/ext/base/thread_annotations.h
+++ b/include/perfetto/ext/base/thread_annotations.h
@@ -24,8 +24,8 @@
extern "C" {
void AnnotateBenignRaceSized(const char* file,
int line,
- unsigned long address,
- unsigned long size,
+ const volatile void* address,
+ size_t size,
const char* description);
}