From 69a00192b9591439154db887cbdc8bbac6af0ea0 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 13 Nov 2018 13:43:20 -0500 Subject: [PATCH] Add return value to pthread test function --- TestPrograms/test_pthreads.cxx | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/TestPrograms/test_pthreads.cxx b/TestPrograms/test_pthreads.cxx index 062d8b21..adbf3990 100644 --- a/TestPrograms/test_pthreads.cxx +++ b/TestPrograms/test_pthreads.cxx @@ -1,14 +1,15 @@ -#include -#include - -void* function(void *ptr) -{ -} - -int main(int argc, char* argv[]) -{ - pthread_t thread; - int ret = pthread_create(&thread, NULL, function, (void*)0); - pthread_join(thread, NULL); - return 0; -} +#include +#include + +void* function(void *ptr) +{ + return 0; +} + +int main(int argc, char* argv[]) +{ + pthread_t thread; + int ret = pthread_create(&thread, NULL, function, (void*)0); + pthread_join(thread, NULL); + return 0; +}