On Sat, Feb 09, 2008 at 03:49:10PM +0000, Milena Ivanova wrote:
> Update of /cvsroot/monetdb/MonetDB5/src/optimizer
> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv450
> 
> Modified Files:
>       opt_replicator.mx 
> Log Message:
> Fix make warning. Why  didn't it show with my flags set to 
> CONFIGURE_OPTIONS="--enable-debug --disable-optimize --enable-strict"?

`man gcc` says
========
[...]
       -Wuninitialized
           Warn if an automatic variable is used without first being 
initialized or if a variable may be clobbered by a "setjmp" call.

           These warnings are possible only in optimizing compilation, because 
they require data flow information that is computed only when optimizing.  If 
you don’t specify -O, you simply won’t get these warnings.
[...]
========

hence, these warnings (=> error) only occur with optimization enabled.

Stefan

> 
> Index: opt_replicator.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/MonetDB5/src/optimizer/opt_replicator.mx,v
> retrieving revision 1.10
> retrieving revision 1.11
> diff -u -d -r1.10 -r1.11
> --- opt_replicator.mx 8 Feb 2008 16:44:33 -0000       1.10
> +++ opt_replicator.mx 9 Feb 2008 15:49:08 -0000       1.11
> @@ -242,7 +242,7 @@
>       Replica r;
>       int (*cmp) (ptr, ptr);
>       ptr nilptr;
> -     int i, minr;
> +     int i, minr = -1;
>       size_t minc = (size_t) GDK_lng_max;
>       bit leq, lsub, heq, hsub;
>       int rs[replnr], ri=0; /* subset replicas */
> 

-- 
| Dr. Stefan Manegold | mailto:[EMAIL PROTECTED] |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-developers

Reply via email to