From bb09d1e7b2ce1d59e571397e8300d9e18cba8456 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 16 Jul 2010 20:49:01 +0000 Subject: [PATCH] Remove unicode quotes characters that somehow made it into a recent commit of mine. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108552 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticSemaKinds.td | 2 +- test/Sema/format-strings-scanf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index fee5a56e49..ef34fb8ef5 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2985,7 +2985,7 @@ def warn_printf_ignored_flag: Warning< "flag '%0' is ignored when flag '%1' is present">, InGroup; def warn_scanf_scanlist_incomplete : Warning< - "no closing ‘]’ for ‘%%[’ in scanf format string">, + "no closing ']' for '%%[' in scanf format string">, InGroup; // CHECK: returning address/reference of stack memory diff --git a/test/Sema/format-strings-scanf.c b/test/Sema/format-strings-scanf.c index f571886877..5341ad5ee9 100644 --- a/test/Sema/format-strings-scanf.c +++ b/test/Sema/format-strings-scanf.c @@ -11,5 +11,5 @@ void test(const char *s, int *i) { scanf(s, i); // expected-warning{{ormat string is not a string literal}} scanf("%0d", i); // expected-warning{{zero field width in scanf format string is unused}} scanf("%00d", i); // expected-warning{{zero field width in scanf format string is unused}} - scanf("%d%[asdfasdfd", i, s); // expected-warning{{no closing ‘]’ for ‘%[’ in scanf format string}} + scanf("%d%[asdfasdfd", i, s); // expected-warning{{no closing ']' for '%[' in scanf format string}} } -- 2.40.0