http://llvm.org/bugs/show_bug.cgi?id=7981
Dan McGee <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |[email protected] Resolution|FIXED | --- Comment #4 from Dan McGee <[email protected]> 2010-10-07 08:39:01 CDT --- Not fixed in clang 2.8, I hope I'm not in error reopening this: Test case: $ cat test.c #include <stdio.h> #include <wchar.h> int main(int argc, char *argv[]) { wchar_t foo; foo = L't'; printf("%lc", foo); printf("%lc", (wint_t)foo); } $ gcc test.c && ./a.out tt $ clang test.c && ./a.out test.c:9:12: warning: conversion specifies type 'int' but the argument has type 'wint_t' (aka 'unsigned int') [-Wformat] printf("%lc", (wint_t)foo); ~~^ ~~~~~~~~~~~ %u 1 warning generated. tt $ clang --version clang version 2.8 (branches/release_28) Target: x86_64-unknown-linux-gnu Thread model: posix This compiled without warnings in clang 2.7. -- 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
