forked from OSchip/llvm-project
__threading_support: Remove (void) in favor of ().
Summary: This fixes a clang-tidy warning when building something that uses this file. Reviewers: mclow.lists, EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D43226 llvm-svn: 364799
This commit is contained in:
parent
ba41d3b1fd
commit
4603460a39
|
@ -158,7 +158,7 @@ int __libcpp_condvar_destroy(__libcpp_condvar_t* __cv);
|
||||||
// Execute once
|
// Execute once
|
||||||
_LIBCPP_THREAD_ABI_VISIBILITY
|
_LIBCPP_THREAD_ABI_VISIBILITY
|
||||||
int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
|
int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
|
||||||
void (*init_routine)(void));
|
void (*init_routine)());
|
||||||
|
|
||||||
// Thread id
|
// Thread id
|
||||||
_LIBCPP_THREAD_ABI_VISIBILITY
|
_LIBCPP_THREAD_ABI_VISIBILITY
|
||||||
|
@ -301,7 +301,7 @@ int __libcpp_condvar_destroy(__libcpp_condvar_t *__cv)
|
||||||
|
|
||||||
// Execute once
|
// Execute once
|
||||||
int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
|
int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
|
||||||
void (*init_routine)(void)) {
|
void (*init_routine)()) {
|
||||||
return pthread_once(flag, init_routine);
|
return pthread_once(flag, init_routine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue