http://llvm.org/bugs/show_bug.cgi?id=13647
Bug #: 13647
Summary: -Wint-to-pointer-cast not implemented
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
void foo(void *);
int main(void) {
int x = 0;
foo((void *)x);
return 0;
}
gcc warns:
test2.c:6:6: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
clang gives no 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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs