summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/format-strings.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-07-13 17:35:14 +0000
committerTed Kremenek <kremenek@apple.com>2011-07-13 17:35:14 +0000
commitcc47e0fad11ecd14e6b2eb2784329d9db0bac44e (patch)
tree5a16e8ad1dcd30a6a3e9819f2b4fb142430da35e /clang/test/Sema/format-strings.c
parent06210a28de3172d1ae7a8b8fed7ecac3f0e250d3 (diff)
downloadbcm5719-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.c4
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
}
OpenPOWER on IntegriCloud