From: David Levine Date: Sat, 14 Jan 2012 21:28:25 +0000 (-0600) Subject: Fixed warnings from gcc -Wclobbered by adding volatile qualifiers. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=ca34fbd0a5204d47ad019f64ef03d21ebd3397fd;p=mmh Fixed warnings from gcc -Wclobbered by adding volatile qualifiers. --- diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 2a3f899..87ebf16 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -988,7 +988,8 @@ compose_content (CT ct) default: if (!ce->ce_file) { pid_t child_id; - int i, xstdout, len, buflen; + int i, len, buflen; + volatile int xstdout; char *bp, **ap, *cp; char *vec[4], buffer[BUFSIZ]; FILE *out; diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 16325bf..4c2558f 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -790,7 +790,7 @@ parse (void) static void -process (char *folder, char *fname, int ofilen, int ofilec) +process (char *folder, char *volatile fname, int ofilen, int ofilec) { char *cp = NULL; FILE *fp = NULL; diff --git a/uip/mhparse.c b/uip/mhparse.c index 1b49efd..ea78b42 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -2472,7 +2472,8 @@ InitFTP (CT ct) static int openFTP (CT ct, char **file) { - int cachetype, caching, fd; + int cachetype, fd; + volatile int caching; int len, buflen; char *bp, *ftp, *user, *pass; char buffer[BUFSIZ], cachefile[BUFSIZ]; diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 74d19d5..8ce068d 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -217,7 +217,8 @@ static int message_fd (char **vec) { pid_t child_id; - int bytes, fd, seconds; + int bytes, seconds; + volatile int fd; char tmpfil[BUFSIZ]; struct stat st; diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 6215219..09126c2 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -771,10 +771,11 @@ splitmsg (char **vec, int vecp, char *drft, struct stat *st, int delay) */ static int -sendaux (char **vec, int vecp, char *drft, struct stat *st) +sendaux (char **vec, int vecp, char *volatile drft, struct stat *st) { pid_t child_id; - int i, status, fd, fd2; + int i, status; + volatile int fd, fd2; char backup[BUFSIZ], buf[BUFSIZ]; fd = pushsw ? tmp_fd () : NOTOK; diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index c3d93ff..3009e0f 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -811,7 +811,7 @@ copyf (char *ifile, char *ofile) */ static int -sendfile (char **arg, char *file, int pushsw) +sendfile (char **arg, char *file, volatile int pushsw) { pid_t child_id; int i, vecp;