From d4a67ab8d5741ddc7167515f8f87285d908a7609 Mon Sep 17 00:00:00 2001 From: Naman Dixit Date: Thu, 25 Jun 2020 11:39:40 +0530 Subject: [PATCH] Added void to function signatures, in order to fix Clang's -Wstrict-prototypes --- libco.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libco.h b/libco.h index 88d00a72..633cd542 100644 --- a/libco.h +++ b/libco.h @@ -13,12 +13,12 @@ extern "C" { typedef void* cothread_t; -cothread_t co_active(); +cothread_t co_active(void); cothread_t co_derive(void*, unsigned int, void (*)(void)); cothread_t co_create(unsigned int, void (*)(void)); void co_delete(cothread_t); void co_switch(cothread_t); -int co_serializable(); +int co_serializable(void); #ifdef __cplusplus }