mirror of
https://github.com/curl/curl.git
synced 2026-07-16 00:07:22 +03:00
fix compiler warning: variable' might be clobbered by longjmp' or `vfork'
This commit is contained in:
parent
b64f0dace3
commit
26a651f7ae
2 changed files with 7 additions and 7 deletions
|
|
@ -524,7 +524,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
|
|||
const char *hostname,
|
||||
int port,
|
||||
struct Curl_dns_entry **entry,
|
||||
long timeout)
|
||||
volatile long timeout)
|
||||
{
|
||||
#ifdef USE_ALARM_TIMEOUT
|
||||
#ifdef HAVE_SIGACTION
|
||||
|
|
|
|||
|
|
@ -760,9 +760,9 @@ static void timer(int signum)
|
|||
*/
|
||||
static void sendtftp(struct testcase *test, struct formats *pf)
|
||||
{
|
||||
struct tftphdr *dp;
|
||||
struct tftphdr *ap; /* ack packet */
|
||||
unsigned short block = 1;
|
||||
struct tftphdr * volatile dp;
|
||||
struct tftphdr * volatile ap; /* ack packet */
|
||||
volatile unsigned short block = 1;
|
||||
int size;
|
||||
ssize_t n;
|
||||
#if defined(HAVE_ALARM) && defined(SIGALRM)
|
||||
|
|
@ -835,9 +835,9 @@ static void justtimeout(int signum)
|
|||
*/
|
||||
static void recvtftp(struct testcase *test, struct formats *pf)
|
||||
{
|
||||
struct tftphdr *dp;
|
||||
struct tftphdr *ap; /* ack buffer */
|
||||
unsigned short block = 0;
|
||||
struct tftphdr * volatile dp;
|
||||
struct tftphdr * volatile ap; /* ack buffer */
|
||||
volatile unsigned short block = 0;
|
||||
ssize_t n, size;
|
||||
#if defined(HAVE_ALARM) && defined(SIGALRM)
|
||||
mysignal(SIGALRM, timer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue