Changeset: b1f34577b441 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b1f34577b441
Modified Files:
pathfinder/compiler/mil/milgen.brg
Branch: Feb2010
Log Message:
fixed compilation error
compilation with optimization enabled failed with
.../pathfinder/compiler/mil/milgen.brg: In function ‘do_reduce’:
.../pathfinder/compiler/mil/milgen.brg:7493: error: ‘str’ may be used
uninitialized in this function
.../pathfinder/compiler/mil/milgen.brg:7494: error: ‘qname_id’ may be used
uninitialized in this function
.../pathfinder/compiler/mil/milgen.brg:7495: error: ‘qname_cont’ may be used
uninitialized in this function
fixed by initilizing all three variables on their declaration to NULL
(I hope NULL is the correct initial default value)
diffs (16 lines):
diff -r 64ca5f409781 -r b1f34577b441 pathfinder/compiler/mil/milgen.brg
--- a/pathfinder/compiler/mil/milgen.brg Thu Jul 08 20:48:11 2010 +0200
+++ b/pathfinder/compiler/mil/milgen.brg Fri Jul 09 10:36:41 2010 +0200
@@ -7490,9 +7490,9 @@
/* only used in assertions */
PFalg_simple_type_t ty = type_of (L(p), p->sem.doc_access.col);
#endif
- mvar_t *str,
- *qname_id,
- *qname_cont;
+ mvar_t *str = NULL,
+ *qname_id = NULL,
+ *qname_cont = NULL;
PFmil_t *frag = VAR (L(p)->env, col, aat_frag),
*pre = VAR (L(p)->env, col, aat_pre),
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list