diff options
author | Siva Chandra Reddy <sivachandra@google.com> | 2022-07-27 21:24:07 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@google.com> | 2022-08-04 23:46:38 +0000 |
commit | 2e4ef9b6efcaacd5556e8c0ddf659550d3a089a0 (patch) | |
tree | 4ea73fbd6cca89a527622c51c374c394b95f9d8c /libc/src/pthread/pthread_create.cpp | |
parent | 1bfc05270576d082a258481438993a393d171226 (diff) | |
download | llvm-2e4ef9b6efcaacd5556e8c0ddf659550d3a089a0.zip llvm-2e4ef9b6efcaacd5556e8c0ddf659550d3a089a0.tar.gz llvm-2e4ef9b6efcaacd5556e8c0ddf659550d3a089a0.tar.bz2 |
[libc][NFC] Add a few compiler warning flags.
A bunch of cleanup to supress the new warnings is also done.
Reviewed By: abrachet
Differential Revision: https://reviews.llvm.org/D130723
Diffstat (limited to 'libc/src/pthread/pthread_create.cpp')
-rw-r--r-- | libc/src/pthread/pthread_create.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/src/pthread/pthread_create.cpp b/libc/src/pthread/pthread_create.cpp index ec1e0e3..7064125 100644 --- a/libc/src/pthread/pthread_create.cpp +++ b/libc/src/pthread/pthread_create.cpp @@ -20,10 +20,10 @@ static_assert(sizeof(pthread_t) == sizeof(__llvm_libc::Thread), "Mismatch between pthread_t and internal Thread."); LLVM_LIBC_FUNCTION(int, pthread_create, - (pthread_t *__restrict th, - const pthread_attr_t *__restrict attr, + (pthread_t *__restrict th, const pthread_attr_t *__restrict, __pthread_start_t func, void *arg)) { auto *thread = reinterpret_cast<__llvm_libc::Thread *>(th); + // TODO: Use the attributes parameter to set up thread properties. int result = thread->run(func, arg, nullptr, 0); if (result != 0 && result != EPERM) return EAGAIN; |