Skip to content

Commit 4603460

Browse files
__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
1 parent ba41d3b commit 4603460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__threading_support

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ int __libcpp_condvar_destroy(__libcpp_condvar_t* __cv);
158158
// Execute once
159159
_LIBCPP_THREAD_ABI_VISIBILITY
160160
int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
161-
void (*init_routine)(void));
161+
void (*init_routine)());
162162

163163
// Thread id
164164
_LIBCPP_THREAD_ABI_VISIBILITY
@@ -301,7 +301,7 @@ int __libcpp_condvar_destroy(__libcpp_condvar_t *__cv)
301301

302302
// Execute once
303303
int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
304-
void (*init_routine)(void)) {
304+
void (*init_routine)()) {
305305
return pthread_once(flag, init_routine);
306306
}
307307

0 commit comments

Comments
 (0)