gcc 4.0 with -O2 -Wall thinks it finds these uninitialised variables,
so quieten gcc found by Bastian "waldi" Blank
This commit is contained in:
		
							
								
								
									
										6
									
								
								edit.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								edit.c
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| /**	$MirOS: src/bin/mksh/edit.c,v 1.9 2005/07/04 12:07:40 tg Exp $ */ | ||||
| /**	$MirOS: src/bin/mksh/edit.c,v 1.10 2005/07/12 13:23:59 tg Exp $ */ | ||||
| /*	$OpenBSD: edit.c,v 1.29 2005/04/13 02:33:08 deraadt Exp $	*/ | ||||
| /*	$OpenBSD: edit.h,v 1.8 2005/03/28 21:28:22 deraadt Exp $	*/ | ||||
| /*	$OpenBSD: emacs.c,v 1.37 2005/03/30 17:16:37 deraadt Exp $	*/ | ||||
| @@ -10,7 +10,7 @@ | ||||
| #include <ctype.h> | ||||
| #include <libgen.h> | ||||
|  | ||||
| __RCSID("$MirOS: src/bin/mksh/edit.c,v 1.9 2005/07/04 12:07:40 tg Exp $"); | ||||
| __RCSID("$MirOS: src/bin/mksh/edit.c,v 1.10 2005/07/12 13:23:59 tg Exp $"); | ||||
|  | ||||
| #define	BEL		0x07 | ||||
|  | ||||
| @@ -334,7 +334,7 @@ x_print_expansions(int nwords, char * const *words, int is_command) | ||||
| { | ||||
| 	int use_copy = 0; | ||||
| 	int prefix_len; | ||||
| 	XPtrV l; | ||||
| 	XPtrV l = {}; | ||||
|  | ||||
| 	/* Check if all matches are in the same directory (in this | ||||
| 	 * case, we want to omit the directory name) | ||||
|   | ||||
							
								
								
									
										8
									
								
								eval.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								eval.c
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| /**	$MirOS: src/bin/mksh/eval.c,v 1.5 2005/07/04 12:27:25 tg Exp $ */ | ||||
| /**	$MirOS: src/bin/mksh/eval.c,v 1.6 2005/07/12 13:24:00 tg Exp $ */ | ||||
| /*	$OpenBSD: eval.c,v 1.27 2005/03/30 17:16:37 deraadt Exp $	*/ | ||||
|  | ||||
| #include "sh.h" | ||||
| @@ -6,7 +6,7 @@ | ||||
| #include <dirent.h> | ||||
| #include <pwd.h> | ||||
|  | ||||
| __RCSID("$MirOS: src/bin/mksh/eval.c,v 1.5 2005/07/04 12:27:25 tg Exp $"); | ||||
| __RCSID("$MirOS: src/bin/mksh/eval.c,v 1.6 2005/07/12 13:24:00 tg Exp $"); | ||||
|  | ||||
| /* | ||||
|  * string expansion | ||||
| @@ -149,7 +149,7 @@ expand(char *cp,	/* input word */ | ||||
| 	char *dp, *sp;		/* dest., source */ | ||||
| 	int fdo, word;		/* second pass flags; have word */ | ||||
| 	int doblank;		/* field splitting of parameter/command subst */ | ||||
| 	Expand x;		/* expansion variables */ | ||||
| 	Expand x = {};		/* expansion variables */ | ||||
| 	SubType st_head, *st; | ||||
| 	int newlines = 0; /* For trailing newlines in COMSUB */ | ||||
| 	int saw_eq, tilde_ok; | ||||
| @@ -260,7 +260,7 @@ expand(char *cp,	/* input word */ | ||||
| 			    { | ||||
| 				char *varname = ++sp; /* skip the { or x (}) */ | ||||
| 				int stype; | ||||
| 				int slen; | ||||
| 				int slen = 0; | ||||
|  | ||||
| 				sp = strchr(sp, '\0') + 1; /* skip variable */ | ||||
| 				type = varsub(&x, varname, sp, &stype, &slen); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user