http://llvm.org/bugs/show_bug.cgi?id=9532
Summary: Include results of -Wconstant-logical-operand in
static analysis
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
The warning does give a valuable report but it might got lost in compiler
output.
CC drivers/edac/i7core_edac.o
/home/ds/_kernel/linux-2.6-clang/drivers/edac/i7core_edac.c:1673:39: warning:
use of logical && with constant operand; switch to bitwise & or remove constant
[-Wconstant-logical-operand]
u32 core_err_cnt = (m->status >> 38) && 0x7fff;
^ ~~~~~~
Inclusion in analysis result list would be very appreciated. All reports from
this warning turned out to be bugs.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs