[libc-commits] [libc] [libc] don't over include stdlib in the hdr declaring bsearch (PR #89471)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Fri Apr 19 16:13:39 PDT 2024
nickdesaulniers wrote:
```
/android0/llvm-project/libc/src/stdlib/atof.cpp:16:28: error: ‘double __llvm_libc_19_0_0_git::atof(const char*)’ specifies less restrictive attributes than its target ‘double atof(const char*)’: ‘leaf’, ‘nonnull’, ‘nothrow’, ‘pure’ [-Werror=missing-attributes]
16 | LLVM_LIBC_FUNCTION(double, atof, (const char *str)) {
| ^~~~
```
```
/android0/llvm-project/libc/src/wchar/wctob.cpp:17:25: error: ‘int __llvm_libc_19_0_0_git::wctob(wint_t)’ specifies less restrictive attributes than its target ‘int wctob(wint_t)’: ‘leaf’, ‘nothrow’ [-Werror=missing-attributes]
17 | LLVM_LIBC_FUNCTION(int, wctob, (wint_t c)) {
| ^~~~~
```
maybe interesting. I'll think harder about it next week.
https://github.com/llvm/llvm-project/pull/89471
More information about the libc-commits
mailing list