Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Compile warnings



Only the warning about `as' appears to have any merit:

../../../source/Src/Zle/computil.c: In function `cv_next':
../../../source/Src/Zle/computil.c:2402: warning: `as' might be used uninitialized in this function
../../../source/Src/Zle/computil.c:2402: warning: `sav' might be used uninitialized in this function
../../../source/Src/Zle/computil.c:2428: warning: `sav' might be used uninitialized in this function

Nevertheless ...

--- current/Src/Zle/computil.c	Wed Jun 13 08:01:00 2001
+++ branch/Src/Zle/computil.c	Mon Jun 18 09:36:09 2001
@@ -2399,7 +2399,7 @@
         return r;
 
     } else if (d->hassep) {
-        char *ns = strchr(s, d->sep), *as, *sap, sav;
+        char *ns = strchr(s, d->sep), *as = 0, *sap, sav = 0;
         int skip = 0;
 
         if (d->argsep && (as = strchr(s, d->argsep)) && (!ns || as <= ns)) {
@@ -2425,7 +2425,7 @@
 
         return r;
     } else {
-        char *as = strchr(s, d->argsep), *sap, sav;
+        char *as = strchr(s, d->argsep), *sap, sav = 0;
 
         *sp = NULL;
 

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author