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

Поиск
Список
Период
Сортировка
От Christoph Berg
Тема src/test/dataatexecution-test.c: VOID undeclared
Дата
Msg-id 20131101223954.GF7298@msgid.df7cb.de
обсуждение исходный текст
Ответы Re: src/test/dataatexecution-test.c: VOID undeclared
Список 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@df7cb.de | http://www.df7cb.de/

Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Code not compiling since 19d5486 due to concatenate operators in macros
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: src/test/dataatexecution-test.c: VOID undeclared