Changeset: f633aebfb3b0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f633aebfb3b0
Modified Files:
        monetdb5/modules/mal/pqueue.c
Branch: default
Log Message:

Silense compiler


diffs (31 lines):

diff --git a/monetdb5/modules/mal/pqueue.c b/monetdb5/modules/mal/pqueue.c
--- a/monetdb5/modules/mal/pqueue.c
+++ b/monetdb5/modules/mal/pqueue.c
@@ -1475,12 +1475,11 @@ str PQtopn_minmax(Client cntxt, MalBlkPt
                case TYPE_dbl: QTOPN_shuffle(dbl,>,GTR) break;
                default:
                {       void  *v;
-                       int k;
                        for(o = 0; o < lim; o++){
                                v = (void*) Tloc(b,o);
                                oo = o;
                                for (i= 0; i<top; i++)
-                               if ( (k = atom_CMP( v, Tloc(b,idx[i]), tpe)) > 
0) {
+                               if (  atom_CMP( v, Tloc(b,idx[i]), tpe) > 0) {
                                        v = Tloc(b,idx[i]);
                                        tmp = idx[i];
                                        idx[i]= oo;
@@ -1502,12 +1501,11 @@ str PQtopn_minmax(Client cntxt, MalBlkPt
                case TYPE_dbl: QTOPN_shuffle(dbl,<,LESS) break;
                default:
                {       void  *v;
-                       int k;
                        for(o = 0; o < lim; o++){
                                v = (void*) Tloc(b,o);
                                oo = o;
                                for (i= 0; i<top; i++)
-                               if ( (k = atom_CMP( v, Tloc(b,idx[i]), tpe)) < 
0) {
+                               if ( atom_CMP( v, Tloc(b,idx[i]), tpe) < 0) {
                                        v = Tloc(b,idx[i]);
                                        tmp = idx[i];
                                        idx[i]= oo;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to