From b93805e89673bf86eefe81dc1b59b54312385c2e Mon Sep 17 00:00:00 2001 From: mtm Date: Thu, 26 Jun 2008 07:05:35 +0000 Subject: [PATCH] The signature for a pthread function requires that it return a pointer to a void. The send_thread() and disk_thread() funtions; however, do not have a return value because they run for the duration of the daemon's lifetime. This causes gcc to barf when running with -O3. Make these functions return a null pointer to quiet it. PR: bin/124342 Submitted by: Garrett Cooper (minus his comments) MFC after: 1 week --- ggated/ggated.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ggated/ggated.c b/ggated/ggated.c index 74784e7..52d2428 100644 --- a/ggated/ggated.c +++ b/ggated/ggated.c @@ -756,6 +756,9 @@ disk_thread(void *arg) error = pthread_mutex_unlock(&outqueue_mtx); assert(error == 0); } + + /* NOTREACHED */ + return (NULL); } static void * @@ -810,6 +813,9 @@ send_thread(void *arg) } free(req); } + + /* NOTREACHED */ + return (NULL); } static void