r217556 - Thread Safety Analysis: major update to thread safety TIL.

Aaron Ballman aaron at aaronballman.com
Fri Sep 12 05:56:29 PDT 2014


On Fri, Sep 12, 2014 at 8:51 AM, Patrik Hägglund H
<patrik.h.hagglund at ericsson.com> wrote:
> With gcc-4.9.1, I get:
>
> ../tools/clang/lib/Analysis/ThreadSafetyTIL.cpp:173:11: error: overflow in implicit constant conversion [-Werror=overflow]
>    Visited = 1;
>            ^
> Should unsigned be used instead of int below?

I just fixed this in r217670 -- I changed to using a bool instead of
unsigned, since bool is all this is meant to represent anyway.

~Aaron




More information about the cfe-commits mailing list