From: John Darrington Date: Sat, 3 Sep 2011 04:54:16 +0000 (+0200) Subject: Avoid compiler warnings about uninitialised variables. X-Git-Tag: v0.7.9~146 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f1fc2655c5e4aea0b39e5d309a1cc4826f16d4e;p=pspp-builds.git Avoid compiler warnings about uninitialised variables. Some compilers produced warnings about possible use of uninitialised variables (although such use was in fact not possible) These warnings were harmless (perhaps even erroneous) but it's no problem to avoid them. --- diff --git a/src/language/stats/t-test-parser.c b/src/language/stats/t-test-parser.c index 7c8d8a54..efb84b32 100644 --- a/src/language/stats/t-test-parser.c +++ b/src/language/stats/t-test-parser.c @@ -48,18 +48,18 @@ cmd_t_test (struct lexer *lexer, struct dataset *ds) const struct variable **v2 = NULL; size_t n_v2; - size_t n_pairs; + size_t n_pairs = 0; vp *pairs = NULL; /* One sample mode */ - double testval; + double testval = SYSMIS; /* Independent samples mode */ const struct variable *gvar; union value gval0; union value gval1; - bool cut; + bool cut = false; tt.wv = dict_get_weight (dict); tt.dict = dict;