__threading_support: Remove (void) in favor of ().
authorBruce Mitchener <bruce.mitchener@gmail.com>
Mon, 1 Jul 2019 16:18:38 +0000 (16:18 +0000)
committerBruce Mitchener <bruce.mitchener@gmail.com>
Mon, 1 Jul 2019 16:18:38 +0000 (16:18 +0000)
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

libcxx/include/__threading_support

index 097cb73..589fe20 100644 (file)
@@ -158,7 +158,7 @@ int __libcpp_condvar_destroy(__libcpp_condvar_t* __cv);
 // Execute once
 _LIBCPP_THREAD_ABI_VISIBILITY
 int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
-                          void (*init_routine)(void));
+                          void (*init_routine)());
 
 // Thread id
 _LIBCPP_THREAD_ABI_VISIBILITY
@@ -301,7 +301,7 @@ int __libcpp_condvar_destroy(__libcpp_condvar_t *__cv)
 
 // Execute once
 int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
-                          void (*init_routine)(void)) {
+                          void (*init_routine)()) {
   return pthread_once(flag, init_routine);
 }