Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VsBoh-0007SS-IO for pgsql-odbc@arkaria.postgresql.org; Sun, 15 Dec 2013 13:33:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VsBoh-00075V-0C for pgsql-odbc@arkaria.postgresql.org; Sun, 15 Dec 2013 13:33:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VsBof-00075M-7Q for pgsql-odbc@postgresql.org; Sun, 15 Dec 2013 13:33:05 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VsBoY-00044R-L2 for pgsql-odbc@postgresql.org; Sun, 15 Dec 2013 13:33:01 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VsBoW-00027j-QP for pgsql-odbc@postgresql.org; Sun, 15 Dec 2013 05:32:56 -0800 Date: Sun, 15 Dec 2013 05:32:56 -0800 (PST) From: ljwilson To: pgsql-odbc@postgresql.org Message-ID: <1387114376802-5783481.post@n5.nabble.com> Subject: Windows Compile warnings: C4018 signed/unsigned mismatch and C4723 potential divide by 0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This shouldn't hold-up the impending release, but I thought I should mention this. I've always gotten these compiler warnings with VS2012 Express, and just ignore them. Should we be setting a compile-level switch to surpress them, or should they be fixed in the code? Using command: nmake /f win32.mak CFG=Release ALL USE_LIBPQ=yes With git commit: d57e87caf0079e9aca8ea0c1ae8f6ea3fa81588b bind.c(940) : warning C4018: '<' : signed/unsigned mismatch convert.c(474) : warning C4018: '>' : signed/unsigned mismatch convert.c(1417) : warning C4018: '<=' : signed/unsigned mismatch convert.c(1459) : warning C4018: '<' : signed/unsigned mismatch convert.c(2670) : warning C4018: '<' : signed/unsigned mismatch convert.c(2701) : warning C4018: '<' : signed/unsigned mismatch convert.c(2752) : warning C4018: '<' : signed/unsigned mismatch convert.c(3047) : warning C4018: '<' : signed/unsigned mismatch convert.c(3413) : warning C4018: '<' : signed/unsigned mismatch convert.c(4135) : warning C4018: '>=' : signed/unsigned mismatch convert.c(4844) : warning C4018: '<' : signed/unsigned mismatch dlg_specific.c(1476) : warning C4018: '<' : signed/unsigned mismatch dlg_specific.c(1481) : warning C4018: '>=' : signed/unsigned mismatch dlg_specific.c(1490) : warning C4018: '>=' : signed/unsigned mismatch execute.c(1390) : warning C4018: '>=' : signed/unsigned mismatch info.c(803) : warning C4018: '>=' : signed/unsigned mismatch parse.c(306) : warning C4018: '<' : signed/unsigned mismatch parse.c(505) : warning C4018: '<=' : signed/unsigned mismatch parse.c(1125) : warning C4018: '<' : signed/unsigned mismatch parse.c(1139) : warning C4018: '>=' : signed/unsigned mismatch parse.c(1153) : warning C4018: '<' : signed/unsigned mismatch parse.c(1500) : warning C4018: '>=' : signed/unsigned mismatch pgtypes.c(1488) : warning C4018: '<' : signed/unsigned mismatch c:\psqlodbc\convert.c(692) : warning C4723: potential divide by 0 qresult.c(936) : warning C4018: '>' : signed/unsigned mismatch results.c(565) : warning C4018: '<' : signed/unsigned mismatch results.c(625) : warning C4018: '<' : signed/unsigned mismatch results.c(878) : warning C4018: '>=' : signed/unsigned mismatch results.c(1338) : warning C4018: '<=' : signed/unsigned mismatch results.c(1353) : warning C4018: '<=' : signed/unsigned mismatch results.c(1768) : warning C4018: '>' : signed/unsigned mismatch results.c(1806) : warning C4018: '<' : signed/unsigned mismatch results.c(2189) : warning C4018: '>=' : signed/unsigned mismatch results.c(2325) : warning C4018: '>=' : signed/unsigned mismatch results.c(2429) : warning C4018: '>=' : signed/unsigned mismatch results.c(2539) : warning C4018: '>=' : signed/unsigned mismatch results.c(2647) : warning C4018: '<' : signed/unsigned mismatch results.c(2784) : warning C4018: '<' : signed/unsigned mismatch results.c(2800) : warning C4018: '<' : signed/unsigned mismatch results.c(2824) : warning C4018: '<' : signed/unsigned mismatch results.c(2965) : warning C4018: '>=' : signed/unsigned mismatch results.c(2972) : warning C4018: '>=' : signed/unsigned mismatch results.c(3110) : warning C4018: '<' : signed/unsigned mismatch results.c(3286) : warning C4018: '>' : signed/unsigned mismatch results.c(3297) : warning C4018: '>' : signed/unsigned mismatch results.c(3308) : warning C4018: '>' : signed/unsigned mismatch results.c(3408) : warning C4018: '<' : signed/unsigned mismatch results.c(3433) : warning C4018: '>=' : signed/unsigned mismatch results.c(3553) : warning C4018: '>=' : signed/unsigned mismatch results.c(3629) : warning C4018: '>=' : signed/unsigned mismatch results.c(3796) : warning C4018: '>=' : signed/unsigned mismatch results.c(4019) : warning C4018: '<' : signed/unsigned mismatch results.c(4213) : warning C4018: '<' : signed/unsigned mismatch results.c(4308) : warning C4018: '>=' : signed/unsigned mismatch results.c(4563) : warning C4018: '>=' : signed/unsigned mismatch statement.c(1704) : warning C4018: '<' : signed/unsigned mismatch odbcapi30w.c(186) : warning C4018: '>=' : signed/unsigned mismatch odbcapi30w.c(311) : warning C4018: '>=' : signed/unsigned mismatch odbcapi30w.c(382) : warning C4018: '>=' : signed/unsigned mismatch Thanks...jack -- View this message in context: http://postgresql.1045698.n5.nabble.com/Windows-Compile-warnings-C4018-signed-unsigned-mismatch-and-C4723-potential-divide-by-0-tp5783481.html Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc