]> git.marmaro.de Git - mmh/commitdiff
Fixed warnings from gcc -Wclobbered by adding volatile qualifiers.
authorDavid Levine <levinedl@acm.org>
Sat, 14 Jan 2012 21:28:25 +0000 (15:28 -0600)
committerDavid Levine <levinedl@acm.org>
Sat, 14 Jan 2012 21:28:25 +0000 (15:28 -0600)
uip/mhbuildsbr.c
uip/mhlsbr.c
uip/mhparse.c
uip/rcvtty.c
uip/sendsbr.c
uip/whatnowsbr.c

index 2a3f8996958826121cb1ba349a05c37645579e27..87ebf161462657f8bb03f34e93563c54adbeb15b 100644 (file)
@@ -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;
index 16325bf6e551b9999d53c7df1eae719e2e1a3618..4c2558f742926234fd346763988aa8c545b2abb3 100644 (file)
@@ -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;
index 1b49efdfd07d049e64b84b53f89a7f190e3e823d..ea78b42c4644fbe358cf95ac92b35ec557d96d0b 100644 (file)
@@ -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];
index 74d19d5d641948f9446b238d9866a89b30ba3a6d..8ce068d65be8aececa3558602b9da92e1475cfc7 100644 (file)
@@ -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;
 
index 6215219ec0c9a995d7135261aa13ffff2676eb44..09126c2288b3fd2356cbb77379fc64260df64f78 100644 (file)
@@ -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;
index c3d93ff6b65e352f1c4ee7c70997e99454a4b5ab..3009e0f0ccf9065381c6374aa321cbb61a84b67f 100644 (file)
@@ -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;