summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-03 17:03:13 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-03 17:03:13 (GMT)
commitaa4d7847ee4bab0c1c6bd8fbb5a516e24f66f701 (patch)
treece675ae44005d9165ed6943fa1e0f1b7ae4d888f /Utilities
parent44ab336a0c4afe9dab6e7d038aec9a27c7ee92c7 (diff)
downloadCMake-aa4d7847ee4bab0c1c6bd8fbb5a516e24f66f701.zip
CMake-aa4d7847ee4bab0c1c6bd8fbb5a516e24f66f701.tar.gz
CMake-aa4d7847ee4bab0c1c6bd8fbb5a516e24f66f701.tar.bz2
COMP: Fix code-not-reached warnings for SunCC.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/url.c2
-rw-r--r--Utilities/cmxmlrpc/xmlrpc_curl_transport.c13
2 files changed, 9 insertions, 6 deletions
diff --git a/Utilities/cmcurl/url.c b/Utilities/cmcurl/url.c
index bc896b3..3f4a4c3 100644
--- a/Utilities/cmcurl/url.c
+++ b/Utilities/cmcurl/url.c
@@ -192,7 +192,7 @@ RETSIGTYPE alarmfunc(int sig)
#ifdef HAVE_SIGSETJMP
siglongjmp(curl_jmpenv, 1);
#endif
- return;
+ /*return;*/ /* not reahed, and has no effect anyway */
}
#endif /* SIGALRM */
#endif /* WIN32 */
diff --git a/Utilities/cmxmlrpc/xmlrpc_curl_transport.c b/Utilities/cmxmlrpc/xmlrpc_curl_transport.c
index ad90874..5726663 100644
--- a/Utilities/cmxmlrpc/xmlrpc_curl_transport.c
+++ b/Utilities/cmxmlrpc/xmlrpc_curl_transport.c
@@ -48,7 +48,10 @@
static char THIS_FILE[] = __FILE__;
#endif /*WIN32 && _DEBUG*/
-
+static void xmlrpc_abort(void)
+{
+ abort();
+}
struct clientTransport {
#if defined (HAVE_PTHREADS)
@@ -575,7 +578,7 @@ rpcCreate(xmlrpc_env * const envP,
#if defined(HAVE_PTHREADS)
createRpcThread(envP, rpcP, &rpcP->thread);
#else
- abort();
+ xmlrpc_abort();
#endif
if (!envP->fault_occurred)
rpcP->threadExists = TRUE;
@@ -666,7 +669,7 @@ finishRpc(struct list_head * const headerP,
result = pthread_join(rpcP->thread, &status);
(void)result;
#else
- abort();
+ xmlrpc_abort();
#endif
rpcP->threadExists = FALSE;
@@ -698,7 +701,7 @@ finishAsynch(struct clientTransport * const clientTransportP ATTR_UNUSED,
#if defined(HAVE_PTHREADS)
pthread_mutex_lock(&clientTransportP->listLock);
#else
- abort();
+ xmlrpc_abort();
#endif
list_foreach(&clientTransportP->rpcList, finishRpc, NULL);
@@ -706,7 +709,7 @@ finishAsynch(struct clientTransport * const clientTransportP ATTR_UNUSED,
#if defined(HAVE_PTHREADS)
pthread_mutex_unlock(&clientTransportP->listLock);
#else
- abort();
+ xmlrpc_abort();
#endif
}