Fixed type casting
authorkhizmax <libcds.dev@gmail.com>
Tue, 29 Nov 2016 20:47:24 +0000 (23:47 +0300)
committerkhizmax <libcds.dev@gmail.com>
Tue, 29 Nov 2016 20:47:24 +0000 (23:47 +0300)
cds/compiler/feature_tsan.h

index 5cf2886f6325764c6ada2b1d191adbd0b9fa0437..2f700c653626a71b82b53b63ae51f1069ddf43ea 100644 (file)
@@ -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<void *>(addr), sz )
+#   define CDS_TSAN_ANNOTATE_NEW_MEMORY( addr, sz ) AnnotateNewMemory( __FILE__, __LINE__, reinterpret_cast<void *>(addr), sz )
 
 #   define CDS_TSAN_ANNOTATE_MUTEX_CREATE( addr )    AnnotateRWLockCreate( __FILE__, __LINE__, reinterpret_cast<void *>(addr))
 #   define CDS_TSAN_ANNOTATE_MUTEX_DESTROY( addr )   AnnotateRWLockDestroy( __FILE__, __LINE__, reinterpret_cast<void *>(addr))
         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 );
     }