From c08e618f990e3a01a86ee221df73268a66664be8 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Mon, 12 Dec 2011 18:46:05 +0000 Subject: [PATCH] Fix signature of vsscanf in Builtins.def git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146392 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/Builtins.def | 2 +- test/Sema/format-strings-scanf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/Basic/Builtins.def b/include/clang/Basic/Builtins.def index 069d38efc0..6ac2473664 100644 --- a/include/clang/Basic/Builtins.def +++ b/include/clang/Basic/Builtins.def @@ -661,7 +661,7 @@ LIBBUILTIN(fscanf, "iP*cC*.", "fs:1:", "stdio.h", ALL_LANGUAGES) LIBBUILTIN(sscanf, "icC*cC*.", "fs:1:", "stdio.h", ALL_LANGUAGES) LIBBUILTIN(vscanf, "icC*a", "fS:0:", "stdio.h", ALL_LANGUAGES) LIBBUILTIN(vfscanf, "iP*cC*a", "fS:1:", "stdio.h", ALL_LANGUAGES) -LIBBUILTIN(vsscanf, "ic*cC*a", "fS:1:", "stdio.h", ALL_LANGUAGES) +LIBBUILTIN(vsscanf, "icC*cC*a", "fS:1:", "stdio.h", ALL_LANGUAGES) // C99 LIBBUILTIN(longjmp, "vJi", "fr", "setjmp.h", ALL_LANGUAGES) diff --git a/test/Sema/format-strings-scanf.c b/test/Sema/format-strings-scanf.c index b16f4a5aa3..6abd0687ef 100644 --- a/test/Sema/format-strings-scanf.c +++ b/test/Sema/format-strings-scanf.c @@ -12,7 +12,7 @@ int my_scanf(const char * restrict, ...) __attribute__((__format__(__scanf__, 1, int vscanf(const char * restrict, va_list); int vfscanf(FILE * restrict, const char * restrict, va_list); -int vsscanf(char * restrict, const char * restrict, va_list); +int vsscanf(const char * restrict, const char * restrict, va_list); void test(const char *s, int *i) { scanf(s, i); // expected-warning{{ormat string is not a string literal}} -- 2.40.0