Re: [Monetdb-developers] MonetDB: gdk-calc - gdk_calc.c, mod_typeswitchloop(): initialize...
Standard gcc on Fedora 16; MonetDB configured with --disable-debug --enable-optimize --disable-assert
--
| Stefan.Manegold @ CWI.nl | DB Architectures (INS1) |
| http://CWI.nl/~manegold/ | Science Park 123 (L321) |
| Tel.: +31 (0)20 592-4212 | 1098 XG Amsterdam (NL) |
----- Reply message -----
From: "Sjoerd Mullender"
Changeset: fc0d3fad41c2 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fc0d3fad41c2 Modified Files: gdk/gdk_calc.c Branch: gdk-calc Log Message:
gdk_calc.c, mod_typeswitchloop(): initialize "nils" (hopefully correctly)
Which sucky compiler was this? There is no code path where nils was not initialized. (This also means that the value you choose here doesn't matter.)
diffs (12 lines):
diff --git a/gdk/gdk_calc.c b/gdk/gdk_calc.c --- a/gdk/gdk_calc.c +++ b/gdk/gdk_calc.c @@ -6157,7 +6157,7 @@ mod_typeswitchloop(const void *lft, int void *dst, int tp, BUN cnt, int abort_on_error, const char *func) { - BUN nils; + BUN nils = BUN_NONE;
switch (ATOMstorage(tp1)) { case TYPE_bte: _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list
-- Sjoerd Mullender
participants (1)
-
Stefan Manegold