http://llvm.org/bugs/show_bug.cgi?id=15507
Matt Beaumont-Gay <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #1 from Matt Beaumont-Gay <[email protected]> --- $ clang -Wsign-conversion -x c++ -fsyntax-only - <<EOF void f() { int s = -1; unsigned int u = 2; signed d = u / s; } EOF <stdin>:4:14: warning: implicit conversion changes signedness: 'unsigned int' to 'int' [-Wsign-conversion] signed d = u / s; ~ ~~^~~ <stdin>:4:16: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion] signed d = u / s; ~ ^ 2 warnings generated. -- 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
