From 2c81b0ab9afed3cf451b98b904016743a894502c Mon Sep 17 00:00:00 2001 From: Pavel Shamis Date: Wed, 28 May 2008 15:20:48 +0000 Subject: [PATCH] Fixing compilation warning in btl_openib_connect_ibcm.c This commit was SVN r18526. --- ompi/mca/btl/openib/connect/btl_openib_connect_ibcm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ompi/mca/btl/openib/connect/btl_openib_connect_ibcm.c b/ompi/mca/btl/openib/connect/btl_openib_connect_ibcm.c index 161633b61f..eed57a9ce5 100644 --- a/ompi/mca/btl/openib/connect/btl_openib_connect_ibcm.c +++ b/ompi/mca/btl/openib/connect/btl_openib_connect_ibcm.c @@ -1271,8 +1271,11 @@ static int ibcm_module_start_connect(ompi_btl_openib_connect_base_module_t *cpc, */ static void *callback_unlock(int fd, int flags, void *context) { +/* We need #if protection in order to prevent unused variable warning */ +#if OMPI_HAVE_THREAD_SUPPORT opal_mutex_t *m = (opal_mutex_t*) context; OPAL_THREAD_UNLOCK(m); +#endif return NULL; }