[libcxx-commits] [libcxx] r364799 - __threading_support: Remove (void) in favor of ().

Bruce Mitchener via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 1 09:18:39 PDT 2019


Author: brucem
Date: Mon Jul  1 09:18:38 2019
New Revision: 364799

URL: http://llvm.org/viewvc/llvm-project?rev=364799&view=rev
Log:
__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

Modified:
    libcxx/trunk/include/__threading_support

Modified: libcxx/trunk/include/__threading_support
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__threading_support?rev=364799&r1=364798&r2=364799&view=diff
==============================================================================
--- libcxx/trunk/include/__threading_support (original)
+++ libcxx/trunk/include/__threading_support Mon Jul  1 09:18:38 2019
@@ -158,7 +158,7 @@ int __libcpp_condvar_destroy(__libcpp_co
 // 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_co
 
 // Execute once
 int __libcpp_execute_once(__libcpp_exec_once_flag *flag,
-                          void (*init_routine)(void)) {
+                          void (*init_routine)()) {
   return pthread_once(flag, init_routine);
 }
 




More information about the libcxx-commits mailing list