From 400dd1c3d03733a57a3cc8f9870b5fcab388d62a Mon Sep 17 00:00:00 2001 From: Jean-Daniel Dupas Date: Fri, 27 Jan 2012 23:21:02 +0000 Subject: Remove the "C" in "implicitly declaring C library function" diagnostic because all functions are not C functions (i.e. NSLog). llvm-svn: 149150 --- clang/test/Sema/block-return.c | 2 +- clang/test/Sema/implicit-builtin-decl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/Sema') diff --git a/clang/test/Sema/block-return.c b/clang/test/Sema/block-return.c index 70fb3e104e9..e8c651652bc 100644 --- a/clang/test/Sema/block-return.c +++ b/clang/test/Sema/block-return.c @@ -81,7 +81,7 @@ void foo4() { int (^xx)(const char *s) = ^(char *s) { return 1; }; // expected-error {{incompatible block pointer types initializing 'int (^)(const char *)' with an expression of type 'int (^)(char *)'}} int (*yy)(const char *s) = funk; // expected-warning {{incompatible pointer types initializing 'int (*)(const char *)' with an expression of type 'int (char *)'}} - int (^nested)(char *s) = ^(char *str) { void (^nest)(void) = ^(void) { printf("%s\n", str); }; next(); return 1; }; // expected-warning{{implicitly declaring C library function 'printf' with type 'int (const char *, ...)'}} \ + int (^nested)(char *s) = ^(char *str) { void (^nest)(void) = ^(void) { printf("%s\n", str); }; next(); return 1; }; // expected-warning{{implicitly declaring library function 'printf' with type 'int (const char *, ...)'}} \ // expected-note{{please include the header or explicitly provide a declaration for 'printf'}} } diff --git a/clang/test/Sema/implicit-builtin-decl.c b/clang/test/Sema/implicit-builtin-decl.c index d80414d5fea..8cdd36518e8 100644 --- a/clang/test/Sema/implicit-builtin-decl.c +++ b/clang/test/Sema/implicit-builtin-decl.c @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s void f() { - int *ptr = malloc(sizeof(int) * 10); // expected-warning{{implicitly declaring C library function 'malloc' with type}} \ + int *ptr = malloc(sizeof(int) * 10); // expected-warning{{implicitly declaring library function 'malloc' with type}} \ // expected-note{{please include the header or explicitly provide a declaration for 'malloc'}} \ // expected-note{{'malloc' is a builtin with type 'void *}} } -- cgit v1.2.3