Changeset: 7025b1ade639 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7025b1ade639
Modified Files:
        clients/src/odbc/driver/ODBCGlobal.h
Branch: Oct2010
Log Message:

fixed LENFMT for SQLLEN on 64-bit:
SQLLEN appears to be typedef long (not typedef long long);
hence, LENFMT should be "%ld" (not "%lld")

found be clang 2.8 on 64-bit Fedora 14:
clients/src/odbc/driver/SQLBindCol.c:55:6: error: conversion specifies type 
'long long' but the argument has type 'SQLLEN' (aka 'long') [-Wformat]
        ODBCLOG("SQLBindCol " PTRFMT " %d %d " LENFMT "\n", PTRFMTCAST hStmt, 
nCol, nTargetType, nTargetValueMax);
        
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/export/scratch0/manegold/MonetDB/HG/Oct2010/source/clients/src/odbc/driver/SQLBindCol.c:55:45:
 note: instantiated from:
        ODBCLOG("SQLBindCol " PTRFMT " %d %d " LENFMT "\n", PTRFMTCAST hStmt, 
nCol, nTargetType, nTargetValueMax);
                                               ^                                
                 ~~~~~~~~~~~~~~~
In file included from 
/export/scratch0/manegold/MonetDB/HG/Oct2010/source/clients/src/odbc/driver/SQLBindCol.c:39:
/export/scratch0/manegold/MonetDB/HG/Oct2010/source/clients/src/odbc/driver/ODBCGlobal.h:151:21:
 note: instantiated from:
#define LENFMT          "%lld"
                         ~~~^
1 error generated.


diffs (14 lines):

diff -r cfbc1639bdbf -r 7025b1ade639 clients/src/odbc/driver/ODBCGlobal.h
--- a/clients/src/odbc/driver/ODBCGlobal.h      Mon Dec 06 17:45:01 2010 +0100
+++ b/clients/src/odbc/driver/ODBCGlobal.h      Tue Dec 07 19:21:01 2010 +0100
@@ -148,8 +148,8 @@
 #define LENFMT         "%I64d"
 #define ULENFMT                "%I64u"
 #else
-#define LENFMT         "%lld"
-#define ULENFMT                "%llu"
+#define LENFMT         "%ld"
+#define ULENFMT                "%lu"
 #endif
 #endif
 
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to