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

            Bug ID: 17723
           Summary: Implement gcc's -Waddress
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

This is a useful gcc warning that clang didn't give me:

../../third_party/WebKit/Source/core/rendering/RenderObject.cpp:1382:87:error:
the address of 'parentRenderFlowThread' will always evaluate as 'true'
[-Werror=address]


Nicos-MacBook-Pro:src thakis$ cat test.cc
int main() {
  int a;
  if (&a)
    a = 4;
}

Actual: Nothing:

Nicos-MacBook-Pro:src thakis$ clang -Weverything -c test.cc
Nicos-MacBook-Pro:src thakis$ 

Expected: "Address of variable is always true".

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

Reply via email to