diff options
author | Jean-Daniel Dupas <devlists@shadowlab.org> | 2012-01-27 23:21:02 +0000 |
---|---|---|
committer | Jean-Daniel Dupas <devlists@shadowlab.org> | 2012-01-27 23:21:02 +0000 |
commit | 400dd1c3d03733a57a3cc8f9870b5fcab388d62a (patch) | |
tree | 5bc5d6e111213609be006709eee0b2edaf9b664b /clang/test/Sema | |
parent | c26e5fb86b65b2c72b850a06a822b8af15890613 (diff) | |
download | bcm5719-llvm-400dd1c3d03733a57a3cc8f9870b5fcab388d62a.tar.gz bcm5719-llvm-400dd1c3d03733a57a3cc8f9870b5fcab388d62a.zip |
Remove the "C" in "implicitly declaring C library function" diagnostic
because all functions are not C functions (i.e. NSLog).
llvm-svn: 149150
Diffstat (limited to 'clang/test/Sema')
-rw-r--r-- | clang/test/Sema/block-return.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/implicit-builtin-decl.c | 2 |
2 files changed, 2 insertions, 2 deletions
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 <stdio.h> 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 <stdlib.h> or explicitly provide a declaration for 'malloc'}} \ // expected-note{{'malloc' is a builtin with type 'void *}} } |