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

tstAligned: fix compilation with gcc-4.6.1 (defined but not used)

disable entire function if STRUCT_ALIGNED isn't defined, because in that
case we don't do anything with allAligned.


diffs (19 lines):

diff --git a/monetdb5/mal/mal.c b/monetdb5/mal/mal.c
--- a/monetdb5/mal/mal.c
+++ b/monetdb5/mal/mal.c
@@ -206,6 +206,7 @@ MT_Lock     mal_copyLock;
 static
 void tstAligned(void)
 {
+#ifdef STRUCT_ALIGNED
        int allAligned=0;
        ValRecord v;
        ptr val, base;
@@ -221,7 +222,6 @@ void tstAligned(void)
        val= (ptr) & v.val.dval; if(val != base){ allAligned = -1; }
        val= (ptr) & v.val.lval; if(val != base){ allAligned = -1; }
        val= (ptr) & v.val.sval; if(val != base){ allAligned = -1; }
-#ifdef STRUCT_ALIGNED
        if(allAligned<0)
            GDKfatal("Recompile with STRUCT_ALIGNED flag disabled\n");
 #endif
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to