From: khizmax Date: Tue, 29 Nov 2016 20:47:24 +0000 (+0300) Subject: Fixed type casting X-Git-Tag: v2.2.0~29 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=738c1d727a15547661ade6944db566d351ecf65a;p=libcds.git Fixed type casting --- 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 ); }