[cfe-dev] Is it possible to avoid FP when there is #ifdef in the code

Csaba Raduly via cfe-dev cfe-dev at lists.llvm.org
Thu Aug 27 00:31:48 PDT 2015


On Thu, Aug 27, 2015 at 8:37 AM, Daniel Marjamäki wrote:
>
> Hello!
>
>> I don't think it's fair to call this a false positive, unless the "XYZ" macro is defined.
>
> I also agree it is not fair to call this a false positive. But technically it is a false positive. You and I can see that the variable is used.

Technically it *is* a false positive. The compiler cannot see the
variable being used.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the cfe-dev mailing list