diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-07-13 17:35:14 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-07-13 17:35:14 +0000 |
commit | cc47e0fad11ecd14e6b2eb2784329d9db0bac44e (patch) | |
tree | 5a16e8ad1dcd30a6a3e9819f2b4fb142430da35e /clang/test/Sema/format-strings.c | |
parent | 06210a28de3172d1ae7a8b8fed7ecac3f0e250d3 (diff) | |
download | bcm5719-llvm-cc47e0fad11ecd14e6b2eb2784329d9db0bac44e.tar.gz bcm5719-llvm-cc47e0fad11ecd14e6b2eb2784329d9db0bac44e.zip |
Re-relax conversion specifier checking for printf format strings and conversion specifiers. My recent change was a mistake.
llvm-svn: 135048
Diffstat (limited to 'clang/test/Sema/format-strings.c')
-rw-r--r-- | clang/test/Sema/format-strings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c index 83f96ff3a00..b47d3ca2616 100644 --- a/clang/test/Sema/format-strings.c +++ b/clang/test/Sema/format-strings.c @@ -368,7 +368,7 @@ void check_char(unsigned char x, signed char y) { printf("%c", y); // no-warning printf("%hhu", x); // no-warning printf("%hhi", y); // no-warning - printf("%hhi", x); // expected-warning{{conversion specifies type 'signed char' but the argument has type 'unsigned char'}} + printf("%hhi", x); // no-warning printf("%c", x); // no-warning - printf("%hhu", y); // expected-warning{{conversion specifies type 'unsigned char' but the argument has type 'signed char'}} + printf("%hhu", y); // no-warning } |