src/test/dataatexecution-test.c: VOID undeclared

From: Christoph Berg <myon(at)debian(dot)org>
To: pgsql-odbc(at)postgresql(dot)org
Subject: src/test/dataatexecution-test.c: VOID undeclared
Date: 2013-11-01 22:39:54
Message-ID: 20131101223954.GF7298@msgid.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi,

the testsuite doesn't compile here:

gcc -Wno-pointer-sign src/dataatexecution-test.c src/common.o -o src/dataatexecution-test -lodbc
src/dataatexecution-test.c: In function ‘main’:
src/dataatexecution-test.c:55:10: error: ‘VOID’ undeclared (first use in this function)
(VOID *) 1, /* param value ptr. For a data-at-exec
^
src/dataatexecution-test.c:55:10: note: each undeclared identifier is reported only once for each function it appears in
src/dataatexecution-test.c:55:16: error: expected expression before ‘)’ token
(VOID *) 1, /* param value ptr. For a data-at-exec
^
src/dataatexecution-test.c:58:9: error: too few arguments to function ‘SQLBindParameter’
&cbParam1 /* StrLen_or_IndPtr */);
^
In file included from src/common.h:10:0,
from src/dataatexecution-test.c:5:
/usr/include/sqlext.h:2022:19: note: declared here
SQLRETURN SQL_API SQLBindParameter(
^
src/dataatexecution-test.c:66:16: error: expected expression before ‘)’ token
(VOID *) 2, /* param value ptr. For a data-at-exec
^
src/dataatexecution-test.c:69:9: error: too few arguments to function ‘SQLBindParameter’
&cbParam2 /* StrLen_or_IndPtr */);
^
In file included from src/common.h:10:0,
from src/dataatexecution-test.c:5:
/usr/include/sqlext.h:2022:19: note: declared here
SQLRETURN SQL_API SQLBindParameter(
^
src/dataatexecution-test.c:81:26: error: expected expression before ‘)’ token
if (paramid == (VOID *) 1)
^
src/dataatexecution-test.c:86:31: error: expected expression before ‘)’ token
else if (paramid == (VOID *) 2)
^
src/dataatexecution-test.c:129:16: error: expected expression before ‘)’ token
(VOID *) 1, /* param value ptr. For a data-at-exec
^
src/dataatexecution-test.c:132:9: error: too few arguments to function ‘SQLBindParameter’
str_ind_array /* StrLen_or_IndPtr */);
^
In file included from src/common.h:10:0,
from src/dataatexecution-test.c:5:
/usr/include/sqlext.h:2022:19: note: declared here
SQLRETURN SQL_API SQLBindParameter(
^
make[1]: *** [src/dataatexecution-test] Fehler 1
make[1]: Leaving directory `/home/myon/psqlodbc-09.02.0100/test'

The attached patch fixes the problem.

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/

Attachment Content-Type Size
testsuite2 text/plain 1.7 KB

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Heikki Linnakangas 2013-11-03 08:33:39 Re: src/test/dataatexecution-test.c: VOID undeclared
Previous Message Hiroshi Inoue 2013-10-29 01:10:05 Re: Code not compiling since 19d5486 due to concatenate operators in macros