theRockLiu / thread-sanitizer

Automatically exported from code.google.com/p/thread-sanitizer
0 stars 0 forks source link

MSVC compiler warnings when building sanitizer_common #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As of compiler-rt r182843, when building ASan RTL with MSVC -W2:
$ cl -nologo -W2 -I.. -I../../include -c asan_allocator2.cc
asan_allocator2.cc
..\sanitizer_common/sanitizer_quarantine.h(150) : warning C4146: unary minus 
operator applied to unsigned type, result still unsigned
        ..\sanitizer_common/sanitizer_quarantine.h(145) : while compiling class template member function '__sanitizer::QuarantineBatch *__sanitizer::QuarantineCache<Callback>::DequeueBatch(void)'
        with
        [
            Callback=__asan::QuarantineCallback
        ]
        ..\sanitizer_common/sanitizer_quarantine.h(79) : see reference to class template instantiation '__sanitizer::QuarantineCache<Callback>' being compiled
        with
        [
            Callback=__asan::QuarantineCallback
        ]
        asan_allocator2.cc(253) : see reference to class template instantiation '__sanitizer::Quarantine<Callback,Node>' being compiled
        with
        [
            Callback=__asan::QuarantineCallback,
            Node=__asan::AsanChunk
        ]

Original issue reported on code.google.com by timurrrr@google.com on 29 May 2013 at 12:00

GoogleCodeExporter commented 9 years ago
Should be fixed by http://llvm.org/viewvc/llvm-project?rev=193072&view=rev

Original comment by konstant...@gmail.com on 21 Oct 2013 at 8:42