COMP: Fix code-not-reached warnings for SunCC.
This commit is contained in:
parent
44ab336a0c
commit
aa4d7847ee
|
@ -2227,6 +2227,12 @@ static void kwsysProcessRestoreDefaultSignalHandlers(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------------------*/
|
||||||
|
static void kwsysProcessExit(void)
|
||||||
|
{
|
||||||
|
_exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
static pid_t kwsysProcessFork(kwsysProcess* cp,
|
static pid_t kwsysProcessFork(kwsysProcess* cp,
|
||||||
kwsysProcessCreateInformation* si)
|
kwsysProcessCreateInformation* si)
|
||||||
|
@ -2257,7 +2263,7 @@ static pid_t kwsysProcessFork(kwsysProcess* cp,
|
||||||
(errno == EINTR));
|
(errno == EINTR));
|
||||||
|
|
||||||
/* Exit without cleanup. The parent holds all resources. */
|
/* Exit without cleanup. The parent holds all resources. */
|
||||||
_exit(0);
|
kwsysProcessExit();
|
||||||
return 0; /* Never reached, but avoids SunCC warning. */
|
return 0; /* Never reached, but avoids SunCC warning. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -192,7 +192,7 @@ RETSIGTYPE alarmfunc(int sig)
|
||||||
#ifdef HAVE_SIGSETJMP
|
#ifdef HAVE_SIGSETJMP
|
||||||
siglongjmp(curl_jmpenv, 1);
|
siglongjmp(curl_jmpenv, 1);
|
||||||
#endif
|
#endif
|
||||||
return;
|
/*return;*/ /* not reahed, and has no effect anyway */
|
||||||
}
|
}
|
||||||
#endif /* SIGALRM */
|
#endif /* SIGALRM */
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|
|
@ -48,7 +48,10 @@
|
||||||
static char THIS_FILE[] = __FILE__;
|
static char THIS_FILE[] = __FILE__;
|
||||||
#endif /*WIN32 && _DEBUG*/
|
#endif /*WIN32 && _DEBUG*/
|
||||||
|
|
||||||
|
static void xmlrpc_abort(void)
|
||||||
|
{
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
struct clientTransport {
|
struct clientTransport {
|
||||||
#if defined (HAVE_PTHREADS)
|
#if defined (HAVE_PTHREADS)
|
||||||
|
@ -575,7 +578,7 @@ rpcCreate(xmlrpc_env * const envP,
|
||||||
#if defined(HAVE_PTHREADS)
|
#if defined(HAVE_PTHREADS)
|
||||||
createRpcThread(envP, rpcP, &rpcP->thread);
|
createRpcThread(envP, rpcP, &rpcP->thread);
|
||||||
#else
|
#else
|
||||||
abort();
|
xmlrpc_abort();
|
||||||
#endif
|
#endif
|
||||||
if (!envP->fault_occurred)
|
if (!envP->fault_occurred)
|
||||||
rpcP->threadExists = TRUE;
|
rpcP->threadExists = TRUE;
|
||||||
|
@ -666,7 +669,7 @@ finishRpc(struct list_head * const headerP,
|
||||||
result = pthread_join(rpcP->thread, &status);
|
result = pthread_join(rpcP->thread, &status);
|
||||||
(void)result;
|
(void)result;
|
||||||
#else
|
#else
|
||||||
abort();
|
xmlrpc_abort();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rpcP->threadExists = FALSE;
|
rpcP->threadExists = FALSE;
|
||||||
|
@ -698,7 +701,7 @@ finishAsynch(struct clientTransport * const clientTransportP ATTR_UNUSED,
|
||||||
#if defined(HAVE_PTHREADS)
|
#if defined(HAVE_PTHREADS)
|
||||||
pthread_mutex_lock(&clientTransportP->listLock);
|
pthread_mutex_lock(&clientTransportP->listLock);
|
||||||
#else
|
#else
|
||||||
abort();
|
xmlrpc_abort();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
list_foreach(&clientTransportP->rpcList, finishRpc, NULL);
|
list_foreach(&clientTransportP->rpcList, finishRpc, NULL);
|
||||||
|
@ -706,7 +709,7 @@ finishAsynch(struct clientTransport * const clientTransportP ATTR_UNUSED,
|
||||||
#if defined(HAVE_PTHREADS)
|
#if defined(HAVE_PTHREADS)
|
||||||
pthread_mutex_unlock(&clientTransportP->listLock);
|
pthread_mutex_unlock(&clientTransportP->listLock);
|
||||||
#else
|
#else
|
||||||
abort();
|
xmlrpc_abort();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue