From 738c1d727a15547661ade6944db566d351ecf65a Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 29 Nov 2016 23:47:24 +0300 Subject: [PATCH] Fixed type casting --- cds/compiler/feature_tsan.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cds/compiler/feature_tsan.h b/cds/compiler/feature_tsan.h index 5cf2886f..2f700c65 100644 --- a/cds/compiler/feature_tsan.h +++ b/cds/compiler/feature_tsan.h @@ -50,7 +50,7 @@ # define CDS_TSAN_ANNOTATE_IGNORE_RW_END \ CDS_TSAN_ANNOTATE_IGNORE_WRITES_END;\ CDS_TSAN_ANNOTATE_IGNORE_READS_END -# define CDS_TSAN_ANNOTATE_NEW_MEMORY( addr, sz ) AnnotateNewMemory( (char *) __FILE__, __LINE__, reinterpret_cast(addr), sz ) +# define CDS_TSAN_ANNOTATE_NEW_MEMORY( addr, sz ) AnnotateNewMemory( __FILE__, __LINE__, reinterpret_cast(addr), sz ) # define CDS_TSAN_ANNOTATE_MUTEX_CREATE( addr ) AnnotateRWLockCreate( __FILE__, __LINE__, reinterpret_cast(addr)) # define CDS_TSAN_ANNOTATE_MUTEX_DESTROY( addr ) AnnotateRWLockDestroy( __FILE__, __LINE__, reinterpret_cast(addr)) @@ -69,10 +69,10 @@ void AnnotateIgnoreWritesBegin(const char *f, int l); void AnnotateIgnoreWritesEnd(const char *f, int l); - void AnnotateNewMemory(char *f, int l, void * mem, size_t size); + void AnnotateNewMemory( const char *f, int l, void * mem, size_t size); - void AnnotateRWLockCreate( char *f, int l, void* m ); - void AnnotateRWLockDestroy( char *f, int l, void* m ); + void AnnotateRWLockCreate( const char *f, int l, void* m ); + void AnnotateRWLockDestroy( const char *f, int l, void* m ); void AnnotateRWLockAcquired( const char *f, int l, void *m, long is_w ); void AnnotateRWLockReleased( const char *f, int l, void *m, long is_w ); } -- 2.34.1