[LLVMbugs] [Bug 7472] New: There is no warning for empty while body

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 23 13:41:19 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7472

           Summary: There is no warning for empty while body
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: scoopr at iki.fi
                CC: llvmbugs at cs.uiuc.edu


code like:
   while(true);

gives a warning on gcc, like this:
 warning: suggest a space before ';' or explicit braces around empty body in
'while' statement

clang didn't give any warning

-- 
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