[LLVMbugs] [Bug 9532] New: Include results of -Wconstant-logical-operand in static analysis

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 22 17:43:53 PDT 2011


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: kremenek at apple.com
        ReportedBy: dave at jikos.cz
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list