+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent PGSQL_VERSION_REQD=16 WRKLOG=/tmp/bulklog/odbc-postgresql-9.0.200nb7/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent PGSQL_VERSION_REQD=16 WRKLOG=/tmp/bulklog/odbc-postgresql-9.0.200nb7/work.log ===> Building for odbc-postgresql-9.0.200nb7 /opt/pkg/bin/gmake all-am gmake[1]: Entering directory '/home/pbulk/build/databases/odbc-postgresql/work/psqlodbc-09.00.0200' if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT info.lo -MD -MP -MF ".deps/info.Tpo" -c -o info.lo info.c; \ then mv -f ".deps/info.Tpo" ".deps/info.Plo"; else rm -f ".deps/info.Tpo"; exit 1; fi if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT bind.lo -MD -MP -MF ".deps/bind.Tpo" -c -o bind.lo bind.c; \ then mv -f ".deps/bind.Tpo" ".deps/bind.Plo"; else rm -f ".deps/bind.Tpo"; exit 1; fi if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT columninfo.lo -MD -MP -MF ".deps/columninfo.Tpo" -c -o columninfo.lo columninfo.c; \ then mv -f ".deps/columninfo.Tpo" ".deps/columninfo.Plo"; else rm -f ".deps/columninfo.Tpo"; exit 1; fi if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT connection.lo -MD -MP -MF ".deps/connection.Tpo" -c -o connection.lo connection.c; \ then mv -f ".deps/connection.Tpo" ".deps/connection.Plo"; else rm -f ".deps/connection.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT info.lo -MD -MP -MF .deps/info.Tpo -c info.c -fPIC -DPIC -o .libs/info.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT columninfo.lo -MD -MP -MF .deps/columninfo.Tpo -c columninfo.c -fPIC -DPIC -o .libs/columninfo.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT connection.lo -MD -MP -MF .deps/connection.Tpo -c connection.c -fPIC -DPIC -o .libs/connection.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bind.lo -MD -MP -MF .deps/bind.Tpo -c bind.c -fPIC -DPIC -o .libs/bind.o info.c: In function 'PGAPI_Tables': info.c:1575:22: warning: pointer targets in assignment from 'const SQLCHAR *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 1575 | szSchemaName = szTableOwner; | ^ info.c:1583:48: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 1583 | escCatName = adjustLikePattern(szTableQualifier, cbTableQualifier, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:1584:50: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 1584 | escTableName = adjustLikePattern(szTableName, cbTableName, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:1589:50: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 1589 | escCatName = simpleCatalogEscape(szTableQualifier, cbTableQualifier, NULL, conn); | ^~~~~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:1590:52: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 1590 | escTableName = simpleCatalogEscape(szTableName, cbTableName, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:1603:33: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 1603 | tableType = make_string(szTableType, cbTableType, NULL, 0); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} In file included from psqlodbc.h:525, from info.c:19: misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ info.c:1660:114: warning: pointer targets in passing argument 6 of 'schema_strcat1' differ in signedness [-Wpointer-sign] 1660 | schema_strcat1(tables_query, " and nspname %s'%.*s'", op_string, escSchemaName, SQL_NTS, szTableName, cbTableName, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:143:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 143 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ connection.c: In function 'PGAPI_Connect': connection.c:131:21: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 131 | make_string(szDSN, cbDSN, ci->dsn, sizeof(ci->dsn)); | ^~~~~ | | | const SQLCHAR * {aka const unsigned char *} In file included from psqlodbc.h:525, from connection.h:12, from connection.c:17: misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ connection.c:145:21: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 145 | make_string(szUID, cbUID, ci->username, sizeof(ci->username)); | ^~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ connection.c:149:21: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 149 | make_string(szAuthStr, cbAuthStr, ci->password, sizeof(ci->password)); | ^~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ connection.c:156:111: warning: the comparison will always evaluate as 'true' for the address of 'password' will never be NULL [-Waddress] 156 | qlog("conn = %p, %s(DSN='%s', UID='%s', PWD='%s')\n", conn, func, ci->dsn, ci->username, ci->password ? "xxxxx" : ""); | ^ connection.h:288:25: note: 'password' declared here 288 | char password[MEDIUM_REGISTRY_LEN]; | ^~~~~~~~ info.c:1778:46: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 1778 | result = PGAPI_ExecDirect(htbl_stmt, tables_query, SQL_NTS, 0); | ^~~~~~~~~~~~ | | | char * In file included from info.c:39: pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ info.c: In function 'PGAPI_Columns': info.c:2052:30: warning: pointer targets in assignment from 'const SQLCHAR *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 2052 | szSchemaName = szTableOwner; | ^ info.c:2063:58: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 2063 | escTableName = adjustLikePattern(szTableName, cbTableName, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:2064:59: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 2064 | escColumnName = adjustLikePattern(szColumnName, cbColumnName, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:2069:60: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 2069 | escTableName = simpleCatalogEscape(szTableName, cbTableName, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ connection.c: In function 'handle_error_message': connection.c:830:25: warning: variable 'dstlen' set but not used [-Wunused-but-set-variable] 830 | size_t dstlen = 0; | ^~~~~~ info.c:2070:61: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 2070 | escColumnName = simpleCatalogEscape(szColumnName, cbColumnName, NULL, conn); | ^~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ bind.c: In function 'PGAPI_DescribeParam': bind.c:322:26: warning: variable 'apdopts' set but not used [-Wunused-but-set-variable] 322 | APDFields *apdopts; | ^~~~~~~ info.c:2106:117: warning: pointer targets in passing argument 6 of 'schema_strcat1' differ in signedness [-Wpointer-sign] 2106 | schema_strcat1(columns_query, " and n.nspname %s'%.*s'", op_string, escSchemaName, SQL_NTS, szTableName, cbTableName, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:143:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 143 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ info.c:2154:46: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 2154 | result = PGAPI_ExecDirect(hcol_stmt, columns_query, SQL_NTS, 0); | ^~~~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ connection.c: In function 'CC_initial_log': connection.c:1325:44: warning: pointer targets in passing argument 1 of 'check_client_encoding' differ in signedness [-Wpointer-sign] 1325 | encoding = check_client_encoding(ci->conn_settings); | ~~^~~~~~~~~~~~~~~ | | | const char * In file included from connection.c:47: multibyte.h:103:43: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 103 | UCHAR *check_client_encoding(const UCHAR *sql_string); | ~~~~~~~~~~~~~^~~~~~~~~~ connection.c:1325:18: warning: pointer targets in assignment from 'UCHAR *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 1325 | encoding = check_client_encoding(ci->conn_settings); | ^ connection.c:1330:61: warning: pointer targets in passing argument 1 of 'check_client_encoding' differ in signedness [-Wpointer-sign] 1330 | encoding = check_client_encoding(ci->drivers.conn_settings); | ~~~~~~~~~~~^~~~~~~~~~~~~~ | | | const char * multibyte.h:103:43: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 103 | UCHAR *check_client_encoding(const UCHAR *sql_string); | ~~~~~~~~~~~~~^~~~~~~~~~ connection.c:1330:26: warning: pointer targets in assignment from 'UCHAR *' {aka 'unsigned char *'} to 'char *' differ in signedness [-Wpointer-sign] 1330 | encoding = check_client_encoding(ci->drivers.conn_settings); | ^ info.c: In function 'PGAPI_SpecialColumns': connection.c:1335:45: warning: pointer targets in passing argument 1 of 'pg_CS_code' differ in signedness [-Wpointer-sign] 1335 | self->ccsc = pg_CS_code(self->original_client_encoding); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * multibyte.h:75:36: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 75 | extern int pg_CS_code(const UCHAR *stat_string); | ~~~~~~~~~~~~~^~~~~~~~~~~ connection.c:1346:190: warning: the comparison will always evaluate as 'true' for the address of 'password' will never be NULL [-Waddress] 1346 | mylog("%s: DSN = '%s', server = '%s', port = '%s', database = '%s', username = '%s', password='%s'\n", func, ci->dsn, ci->server, ci->port, ci->database, ci->username, ci->password ? "xxxxx" : ""); | ^ connection.h:288:25: note: 'password' declared here 288 | char password[MEDIUM_REGISTRY_LEN]; | ^~~~~~~~ info.c:2739:22: warning: pointer targets in assignment from 'const SQLCHAR *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 2739 | szSchemaName = szTableOwner; | ^ info.c:2742:44: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 2742 | escTableName = simpleCatalogEscape(szTableName, cbTableName, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:2775:109: warning: pointer targets in passing argument 6 of 'schema_strcat1' differ in signedness [-Wpointer-sign] 2775 | schema_strcat1(columns_query, " and u.nspname %s'%.*s'", eq_string, escSchemaName, SQL_NTS, szTableName, cbTableName, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:143:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 143 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ connection.c: In function 'original_CC_connect': info.c:2791:46: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 2791 | result = PGAPI_ExecDirect(hcol_stmt, columns_query, SQL_NTS, 0); | ^~~~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ connection.c:1653:25: warning: unused variable 'authRet' [-Wunused-variable] 1653 | int authRet; | ^~~~~~~ connection.c: In function 'CC_connect': connection.c:2078:69: warning: pointer targets in passing argument 1 of 'pg_CS_code' differ in signedness [-Wpointer-sign] 2078 | self->ccsc = pg_CS_code(self->original_client_encoding); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * multibyte.h:75:36: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 75 | extern int pg_CS_code(const UCHAR *stat_string); | ~~~~~~~~~~~~~^~~~~~~~~~~ info.c:2717:21: warning: variable 'ci' set but not used [-Wunused-but-set-variable] 2717 | ConnInfo *ci; | ^~ info.c: In function 'PGAPI_Statistics': connection.c: In function 'CC_add_statement': info.c:3003:34: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 3003 | table_name = make_string(szTableName, cbTableName, NULL, 0); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ connection.c:2137:17: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 2137 | char ret = TRUE; | ^~~ info.c:3049:22: warning: pointer targets in assignment from 'const SQLCHAR *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 3049 | szSchemaName = szTableOwner; | ^ info.c:3054:85: warning: pointer targets in passing argument 5 of 'schema_strcat' differ in signedness [-Wpointer-sign] 3054 | schema_strcat(table_schemaname, "%.*s", szSchemaName, cbSchemaName, szTableName, cbTableName, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:139:17: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 139 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ info.c:3077:52: warning: pointer targets in passing argument 4 of 'PGAPI_Columns' differ in signedness [-Wpointer-sign] 3077 | result = PGAPI_Columns(hcol_stmt, NULL, 0, table_schemaname, SQL_NTS, | ^~~~~~~~~~~~~~~~ | | | char * info.c:1988:47: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 1988 | const SQLCHAR FAR * szTableOwner, /* PV E*/ | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ info.c:3078:33: warning: pointer targets in passing argument 6 of 'PGAPI_Columns' differ in signedness [-Wpointer-sign] 3078 | table_name, SQL_NTS, NULL, 0, PODBC_NOT_SEARCH_PATTERN | PODBC_SEARCH_PUBLIC_SCHEMA, 0, 0); | ^~~~~~~~~~ | | | char * connection.c: In function 'is_setting_search_path': info.c:1990:47: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 1990 | const SQLCHAR FAR * szTableName, /* PV E*/ | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ connection.c:2503:38: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] 2503 | if (strnicmp(query, "search_path", 11) == 0) | ^~~~~ | | | const UCHAR * {aka const unsigned char *} In file included from connection.h:16: /usr/include/string.h:134:24: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 134 | extern int strncasecmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ info.c:3189:47: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3189 | result = PGAPI_ExecDirect(hindx_stmt, index_query, SQL_NTS, 0); | ^~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ connection.c: In function 'CC_send_query_append': connection.c:2840:92: warning: pointer targets in passing argument 1 of 'is_setting_search_path' differ in signedness [-Wpointer-sign] 2840 | if (is_setting_search_path(query)) | ^~~~~ | | | const char * info.c: In function 'PGAPI_ColumnPrivileges': connection.c:2497:37: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 2497 | is_setting_search_path(const UCHAR* query) | ~~~~~~~~~~~~~^~~~~ info.c:3477:45: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 3477 | escSchemaName = simpleCatalogEscape(szTableOwner, cbTableOwner, NULL, conn); | ^~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:3478:44: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 3478 | escTableName = simpleCatalogEscape(szTableName, cbTableName, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:3483:51: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 3483 | escColumnName = adjustLikePattern(szColumnName, cbColumnName, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:3488:53: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 3488 | escColumnName = simpleCatalogEscape(szColumnName, cbColumnName, NULL, conn); | ^~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ connection.c:2546:25: warning: variable 'msg_truncated' set but not used [-Wunused-but-set-variable] 2546 | BOOL msg_truncated, | ^~~~~~~~~~~~~ info.c: In function 'PGAPI_PrimaryKeys': info.c:3647:37: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 3647 | pktab = make_string(szTableName, cbTableName, NULL, 0); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ connection.c: In function 'CC_send_function': info.c:3654:30: warning: pointer targets in assignment from 'const SQLCHAR *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 3654 | szSchemaName = szTableOwner; | ^ connection.c:3147:33: warning: variable 'c' set but not used [-Wunused-but-set-variable] 3147 | c, | ^ info.c:3656:52: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 3656 | escTableName = simpleCatalogEscape(szTableName, cbTableName, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ connection.c: In function 'CC_setenv': connection.c:3381:42: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3381 | result = PGAPI_ExecDirect(hstmt, "set DateStyle to 'ISO'", SQL_NTS, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from connection.c:49: pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ info.c:3668:78: warning: pointer targets in passing argument 5 of 'schema_strcat' differ in signedness [-Wpointer-sign] 3668 | schema_strcat(pkscm, "%.*s", escSchemaName, SQL_NTS, szTableName, cbTableName, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:139:17: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 139 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ connection.c:3389:50: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3389 | result = PGAPI_ExecDirect(hstmt, "set geqo to 'OFF'", SQL_NTS, 0); | ^~~~~~~~~~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ connection.c:3400:50: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3400 | result = PGAPI_ExecDirect(hstmt, "set ksqo to 'ON'", SQL_NTS, 0); | ^~~~~~~~~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ info.c:3822:54: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3822 | result = PGAPI_ExecDirect(htbl_stmt, tables_query, SQL_NTS, 0); | ^~~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ connection.c:3411:50: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3411 | result = PGAPI_ExecDirect(hstmt, "set extra_float_digits to 2", SQL_NTS, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ connection.c: In function 'CC_send_settings': info.c: In function 'getClientColumnName': connection.c:3468:58: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3468 | result = PGAPI_ExecDirect(hstmt, ptr, SQL_NTS, 0); | ^~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ info.c:3940:61: warning: pointer targets in passing argument 1 of 'isMultibyte' differ in signedness [-Wpointer-sign] 3940 | if (!conn->original_client_encoding || !isMultibyte(serverColumnName)) | ^~~~~~~~~~~~~~~~ | | | char * connection.c:3495:58: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3495 | result = PGAPI_ExecDirect(hstmt, ptr, SQL_NTS, 0); | ^~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ info.c:3919:26: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 3919 | isMultibyte(const UCHAR *str) | ~~~~~~~~~~~~~^~~ connection.c: In function 'CC_lookup_pg_version': connection.c:3619:42: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3619 | result = PGAPI_ExecDirect(hstmt, "select version()", SQL_NTS, 0); | ^~~~~~~~~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ info.c: In function 'PGAPI_ForeignKeys_old': info.c:4140:39: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 4140 | pk_table_needed = make_string(szPkTableName, cbPkTableName, NULL, 0); | ^~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ connection.c:3600:25: warning: variable 'stmt' set but not used [-Wunused-but-set-variable] 3600 | StatementClass *stmt; | ^~~~ info.c:4141:39: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 4141 | fk_table_needed = make_string(szFkTableName, cbFkTableName, NULL, 0); | ^~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ info.c:4162:62: warning: pointer targets in passing argument 3 of 'schema_strcat' differ in signedness [-Wpointer-sign] 4162 | schema_strcat(schema_needed, "%.*s", szFkTableOwner, cbFkTableOwner, szFkTableName, cbFkTableName, conn); | ^~~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:138:67: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 138 | char *schema_strcat(char *buf, const char *fmt, const char *s, ssize_t len, | ~~~~~~~~~~~~^ info.c:4162:94: warning: pointer targets in passing argument 5 of 'schema_strcat' differ in signedness [-Wpointer-sign] 4162 | schema_strcat(schema_needed, "%.*s", szFkTableOwner, cbFkTableOwner, szFkTableName, cbFkTableName, conn); | ^~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:139:17: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 139 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ info.c:4244:54: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 4244 | result = PGAPI_ExecDirect(htbl_stmt, tables_query, SQL_NTS, 0); | ^~~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT columninfo.lo -MD -MP -MF .deps/columninfo.Tpo -c columninfo.c -o columninfo.o >/dev/null 2>&1 info.c:4387:76: warning: pointer targets in passing argument 4 of 'PGAPI_PrimaryKeys' differ in signedness [-Wpointer-sign] 4387 | keyresult = PGAPI_PrimaryKeys(hpkey_stmt, NULL, 0, schema_fetched, SQL_NTS, pk_table_fetched, SQL_NTS, 0); | ^~~~~~~~~~~~~~ | | | char * info.c:3562:45: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 3562 | const SQLCHAR FAR * szTableOwner, /* OA E*/ | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ info.c:4387:101: warning: pointer targets in passing argument 6 of 'PGAPI_PrimaryKeys' differ in signedness [-Wpointer-sign] 4387 | keyresult = PGAPI_PrimaryKeys(hpkey_stmt, NULL, 0, schema_fetched, SQL_NTS, pk_table_fetched, SQL_NTS, 0); | ^~~~~~~~~~~~~~~~ | | | char * info.c:3564:45: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 3564 | const SQLCHAR FAR * szTableName, /* OA(R) E*/ | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ info.c:4532:62: warning: pointer targets in passing argument 3 of 'schema_strcat' differ in signedness [-Wpointer-sign] 4532 | schema_strcat(schema_needed, "%.*s", szPkTableOwner, cbPkTableOwner, szPkTableName, cbPkTableName, conn); | ^~~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:138:67: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 138 | char *schema_strcat(char *buf, const char *fmt, const char *s, ssize_t len, | ~~~~~~~~~~~~^ info.c:4532:94: warning: pointer targets in passing argument 5 of 'schema_strcat' differ in signedness [-Wpointer-sign] 4532 | schema_strcat(schema_needed, "%.*s", szPkTableOwner, cbPkTableOwner, szPkTableName, cbPkTableName, conn); | ^~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:139:17: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 139 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ info.c:4614:54: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 4614 | result = PGAPI_ExecDirect(htbl_stmt, tables_query, SQL_NTS, 0); | ^~~~~~~~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ info.c:4738:68: warning: pointer targets in passing argument 4 of 'PGAPI_PrimaryKeys' differ in signedness [-Wpointer-sign] 4738 | keyresult = PGAPI_PrimaryKeys(hpkey_stmt, NULL, 0, schema_needed, SQL_NTS, pk_table_needed, SQL_NTS, 0); | ^~~~~~~~~~~~~ | | | char * info.c:3562:45: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 3562 | const SQLCHAR FAR * szTableOwner, /* OA E*/ | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ info.c:4738:92: warning: pointer targets in passing argument 6 of 'PGAPI_PrimaryKeys' differ in signedness [-Wpointer-sign] 4738 | keyresult = PGAPI_PrimaryKeys(hpkey_stmt, NULL, 0, schema_needed, SQL_NTS, pk_table_needed, SQL_NTS, 0); | ^~~~~~~~~~~~~~~ | | | char * info.c:3564:45: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 3564 | const SQLCHAR FAR * szTableName, /* OA(R) E*/ | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ info.c: In function 'PGAPI_ProcedureColumns': info.c:4979:51: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 4979 | escSchemaName = adjustLikePattern(szProcOwner, cbProcOwner, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:4980:49: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 4980 | escProcName = adjustLikePattern(szProcName, cbProcName, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:4985:53: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 4985 | escSchemaName = simpleCatalogEscape(szProcOwner, cbProcOwner, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:4986:51: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 4986 | escProcName = simpleCatalogEscape(szProcName, cbProcName, NULL, conn); | ^~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:5087:35: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 5087 | column_name = make_string(szColumnName, cbColumnName, NULL, 0); | ^~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ info.c: In function 'PGAPI_Procedures': info.c:5377:51: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 5377 | escSchemaName = adjustLikePattern(szProcOwner, cbProcOwner, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:5378:49: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 5378 | escProcName = adjustLikePattern(szProcName, cbProcName, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:5383:53: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 5383 | escSchemaName = simpleCatalogEscape(szProcOwner, cbProcOwner, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:5384:51: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 5384 | escProcName = simpleCatalogEscape(szProcName, cbProcName, NULL, conn); | ^~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:5400:104: warning: pointer targets in passing argument 6 of 'schema_strcat1' differ in signedness [-Wpointer-sign] 5400 | schema_strcat1(proc_query, " and nspname %s'%.*s'", op_string, escSchemaName, SQL_NTS, szProcName, cbProcName, conn); | ^~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:143:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 143 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ info.c: In function 'PGAPI_TablePrivileges': info.c:5548:22: warning: pointer targets in assignment from 'const SQLCHAR *' {aka 'const unsigned char *'} to 'const char *' differ in signedness [-Wpointer-sign] 5548 | szSchemaName = szTableOwner; | ^ info.c:5556:50: warning: pointer targets in passing argument 1 of 'adjustLikePattern' differ in signedness [-Wpointer-sign] 5556 | escTableName = adjustLikePattern(szTableName, cbTableName, SEARCH_PATTERN_ESCAPE, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1403:31: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1403 | adjustLikePattern(const char *src, int srclen, char escape_ch, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:5561:52: warning: pointer targets in passing argument 1 of 'simpleCatalogEscape' differ in signedness [-Wpointer-sign] 5561 | escTableName = simpleCatalogEscape(szTableName, cbTableName, NULL, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} info.c:1361:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 1361 | simpleCatalogEscape(const char *src, int srclen, int *result_len, const ConnectionClass *conn) | ~~~~~~~~~~~~^~~ info.c:5583:112: warning: pointer targets in passing argument 6 of 'schema_strcat1' differ in signedness [-Wpointer-sign] 5583 | schema_strcat1(proc_query, " nspname %s'%.*s' and", op_string, escSchemaName, SQL_NTS, szTableName, cbTableName, conn); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:143:33: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 143 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ info.c: In function 'PGAPI_ForeignKeys_new': info.c:5817:39: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 5817 | pk_table_needed = make_string(szPkTableName, cbPkTableName, NULL, 0); | ^~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ info.c:5818:39: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 5818 | fk_table_needed = make_string(szFkTableName, cbFkTableName, NULL, 0); | ^~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ info.c:5830:54: warning: pointer targets in passing argument 3 of 'schema_strcat' differ in signedness [-Wpointer-sign] 5830 | schema_strcat(schema_needed, "%.*s", szFkTableOwner, cbFkTableOwner, szFkTableName, cbFkTableName, conn); | ^~~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:138:67: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 138 | char *schema_strcat(char *buf, const char *fmt, const char *s, ssize_t len, | ~~~~~~~~~~~~^ info.c:5830:86: warning: pointer targets in passing argument 5 of 'schema_strcat' differ in signedness [-Wpointer-sign] 5830 | schema_strcat(schema_needed, "%.*s", szFkTableOwner, cbFkTableOwner, szFkTableName, cbFkTableName, conn); | ^~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:139:17: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 139 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ info.c:5841:54: warning: pointer targets in passing argument 3 of 'schema_strcat' differ in signedness [-Wpointer-sign] 5841 | schema_strcat(schema_needed, "%.*s", szPkTableOwner, cbPkTableOwner, szPkTableName, cbPkTableName, conn); | ^~~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:138:67: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 138 | char *schema_strcat(char *buf, const char *fmt, const char *s, ssize_t len, | ~~~~~~~~~~~~^ info.c:5841:86: warning: pointer targets in passing argument 5 of 'schema_strcat' differ in signedness [-Wpointer-sign] 5841 | schema_strcat(schema_needed, "%.*s", szPkTableOwner, cbPkTableOwner, szPkTableName, cbPkTableName, conn); | ^~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:139:17: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 139 | const char *, int, ConnectionClass *conn); | ^~~~~~~~~~~~ if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT convert.lo -MD -MP -MF ".deps/convert.Tpo" -c -o convert.lo convert.c; \ then mv -f ".deps/convert.Tpo" ".deps/convert.Plo"; else rm -f ".deps/convert.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT bind.lo -MD -MP -MF .deps/bind.Tpo -c bind.c -o bind.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT convert.lo -MD -MP -MF .deps/convert.Tpo -c convert.c -fPIC -DPIC -o .libs/convert.o convert.c: In function 'interval2istruct': convert.c:484:9: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args] 484 | memset(st, sizeof(SQL_INTERVAL_STRUCT), 0); | ^~~~~~ convert.c:559:9: warning: enumeration value 'SQL_IS_DAY' not handled in switch [-Wswitch] 559 | switch (itype) | ^~~~~~ convert.c:559:9: warning: enumeration value 'SQL_IS_HOUR' not handled in switch [-Wswitch] convert.c:559:9: warning: enumeration value 'SQL_IS_MINUTE' not handled in switch [-Wswitch] convert.c:559:9: warning: enumeration value 'SQL_IS_SECOND' not handled in switch [-Wswitch] convert.c:559:9: warning: enumeration value 'SQL_IS_DAY_TO_HOUR' not handled in switch [-Wswitch] convert.c:559:9: warning: enumeration value 'SQL_IS_DAY_TO_MINUTE' not handled in switch [-Wswitch] convert.c:559:9: warning: enumeration value 'SQL_IS_DAY_TO_SECOND' not handled in switch [-Wswitch] convert.c:559:9: warning: enumeration value 'SQL_IS_HOUR_TO_MINUTE' not handled in switch [-Wswitch] convert.c:559:9: warning: enumeration value 'SQL_IS_HOUR_TO_SECOND' not handled in switch [-Wswitch] convert.c:559:9: warning: enumeration value 'SQL_IS_MINUTE_TO_SECOND' not handled in switch [-Wswitch] convert.c: In function 'copy_and_convert_field': convert.c:1171:77: warning: pointer targets in passing argument 1 of 'convert_from_pgbinary' differ in signedness [-Wpointer-sign] 1171 | len = convert_from_pgbinary(neut_str, NULL, 0); | ^~~~~~~~ | | | const char * In file included from convert.c:20: convert.h:55:52: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 55 | size_t convert_from_pgbinary(const UCHAR *value, UCHAR *rgbValue, SQLLEN cbValueMax); | ~~~~~~~~~~~~~^~~~~ convert.c:1230:85: warning: pointer targets in passing argument 1 of 'convert_from_pgbinary' differ in signedness [-Wpointer-sign] 1230 | len = convert_from_pgbinary(neut_str, pgdc->ttlbuf, pgdc->ttlbuflen); | ^~~~~~~~ | | | const char * convert.h:55:52: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 55 | size_t convert_from_pgbinary(const UCHAR *value, UCHAR *rgbValue, SQLLEN cbValueMax); | ~~~~~~~~~~~~~^~~~~ convert.c:1230:99: warning: pointer targets in passing argument 2 of 'convert_from_pgbinary' differ in signedness [-Wpointer-sign] 1230 | len = convert_from_pgbinary(neut_str, pgdc->ttlbuf, pgdc->ttlbuflen); | ~~~~^~~~~~~~ | | | char * convert.h:55:66: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 55 | size_t convert_from_pgbinary(const UCHAR *value, UCHAR *rgbValue, SQLLEN cbValueMax); | ~~~~~~~^~~~~~~~ convert.c:1231:72: warning: pointer targets in passing argument 1 of 'pg_bin2hex' differ in signedness [-Wpointer-sign] 1231 | pg_bin2hex(pgdc->ttlbuf, pgdc->ttlbuf, len); | ~~~~^~~~~~~~ | | | char * convert.c:144:33: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 144 | static SQLLEN pg_bin2hex(UCHAR *src, UCHAR *dst, SQLLEN length); | ~~~~~~~^~~ convert.c:1231:86: warning: pointer targets in passing argument 2 of 'pg_bin2hex' differ in signedness [-Wpointer-sign] 1231 | pg_bin2hex(pgdc->ttlbuf, pgdc->ttlbuf, len); | ~~~~^~~~~~~~ | | | char * convert.c:144:45: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 144 | static SQLLEN pg_bin2hex(UCHAR *src, UCHAR *dst, SQLLEN length); | ~~~~~~~^~~ convert.c:1744:77: warning: pointer targets in passing argument 1 of 'convert_from_pgbinary' differ in signedness [-Wpointer-sign] 1744 | len = convert_from_pgbinary(neut_str, NULL, 0); | ^~~~~~~~ | | | const char * convert.h:55:52: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 55 | size_t convert_from_pgbinary(const UCHAR *value, UCHAR *rgbValue, SQLLEN cbValueMax); | ~~~~~~~~~~~~~^~~~~ convert.c:1753:69: warning: pointer targets in passing argument 1 of 'convert_from_pgbinary' differ in signedness [-Wpointer-sign] 1753 | len = convert_from_pgbinary(neut_str, pgdc->ttlbuf, pgdc->ttlbuflen); | ^~~~~~~~ | | | const char * convert.h:55:52: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 55 | size_t convert_from_pgbinary(const UCHAR *value, UCHAR *rgbValue, SQLLEN cbValueMax); | ~~~~~~~~~~~~~^~~~~ convert.c:1753:83: warning: pointer targets in passing argument 2 of 'convert_from_pgbinary' differ in signedness [-Wpointer-sign] 1753 | len = convert_from_pgbinary(neut_str, pgdc->ttlbuf, pgdc->ttlbuflen); | ~~~~^~~~~~~~ | | | char * convert.h:55:66: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 55 | size_t convert_from_pgbinary(const UCHAR *value, UCHAR *rgbValue, SQLLEN cbValueMax); | ~~~~~~~^~~~~~~~ convert.c: In function 'copy_statement_with_parameters': convert.c:2813:25: warning: variable 'current_row' set but not used [-Wunused-but-set-variable] 2813 | SQLLEN current_row; | ^~~~~~~~~~~ convert.c: In function 'ResolveOneParam': convert.c:4319:72: warning: conversion lacks type at end of format [-Wformat=] 4319 | sprintf(param_string, "%s%d days %s%02d:%02d:%02%d", ivsign, ivstruct->intval.day_second.day, ivsign, ivstruct->intval.day_second.hour, ivstruct->intval.day_second.minute, ivstruct->intval.day_second.second); | ^ convert.c:4520:60: warning: pointer targets in passing argument 1 of 'pg_hex2bin' differ in signedness [-Wpointer-sign] 4520 | pg_hex2bin(buf, allocbuf, used); | ^~~ | | | char * convert.h:56:41: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 56 | SQLLEN pg_hex2bin(const UCHAR *in, UCHAR *out, SQLLEN len); | ~~~~~~~~~~~~~^~ convert.c:4520:65: warning: pointer targets in passing argument 2 of 'pg_hex2bin' differ in signedness [-Wpointer-sign] 4520 | pg_hex2bin(buf, allocbuf, used); | ^~~~~~~~ | | | char * convert.h:56:52: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 56 | SQLLEN pg_hex2bin(const UCHAR *in, UCHAR *out, SQLLEN len); | ~~~~~~~^~~ convert.c:4544:63: warning: pointer targets in passing argument 1 of 'convert_to_pgbinary' differ in signedness [-Wpointer-sign] 4544 | CVT_APPEND_BINARY(qb, buf, used); | ^~~ | | | char * convert.c:2243:41: note: in definition of macro 'CVT_APPEND_BINARY' 2243 | qb->npos += convert_to_pgbinary(buf, &qb->query_statement[qb->npos], used, qb); \ | ^~~ convert.c:2135:34: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 2135 | convert_to_pgbinary(const UCHAR *in, char *out, size_t len, QueryBuild *qb); | ~~~~~~~~~~~~~^~ convert.c:3865:34: warning: variable 'retval' set but not used [-Wunused-but-set-variable] 3865 | int lobj_fd, retval; | ^~~~~~ convert.c:3846:21: warning: unused variable 'ci' [-Wunused-variable] 3846 | ConnInfo *ci = &(conn->connInfo); | ^~ convert.c: In function 'convert_from_pgbinary': convert.c:5473:47: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 5473 | ilen = strlen(value); | ^~~~~ | | | const UCHAR * {aka const unsigned char *} In file included from /usr/include/string.h:35, from convert.c:26: /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ convert.c: In function 'convert_lo': convert.c:5803:28: warning: pointer targets in passing argument 1 of 'pg_bin2hex' differ in signedness [-Wpointer-sign] 5803 | pg_bin2hex((char *) rgbValue, (char *) rgbValue, retval); | ^~~~~~~~~~~~~~~~~ | | | char * convert.c:5603:19: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 5603 | pg_bin2hex(UCHAR *src, UCHAR *dst, SQLLEN length) | ~~~~~~~^~~ convert.c:5803:47: warning: pointer targets in passing argument 2 of 'pg_bin2hex' differ in signedness [-Wpointer-sign] 5803 | pg_bin2hex((char *) rgbValue, (char *) rgbValue, retval); | ^~~~~~~~~~~~~~~~~ | | | char * convert.c:5603:31: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 5603 | pg_bin2hex(UCHAR *src, UCHAR *dst, SQLLEN length) | ~~~~~~~^~~ if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT drvconn.lo -MD -MP -MF ".deps/drvconn.Tpo" -c -o drvconn.lo drvconn.c; \ then mv -f ".deps/drvconn.Tpo" ".deps/drvconn.Plo"; else rm -f ".deps/drvconn.Tpo"; exit 1; fi info.c: In function 'PGAPI_Columns': info.c:2445:77: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 32 [-Wformat-truncation=] 2445 | snprintf(tmp, sizeof(tmp), "%s identity", field_type_name); | ^~ ~~~~~~~~~~~~~~~ info.c:2445:49: note: 'snprintf' output between 10 and 137 bytes into a destination of size 32 2445 | snprintf(tmp, sizeof(tmp), "%s identity", field_type_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT drvconn.lo -MD -MP -MF .deps/drvconn.Tpo -c drvconn.c -fPIC -DPIC -o .libs/drvconn.o convert.c: In function 'ResolveOneParam': convert.c:4428:49: warning: argument 1 null where non-null expected [-Wnonnull] 4428 | strcpy(buf, "1"); | ^~~~~~~~~~~~~~~~ convert.c:4428:49: note: in a call to built-in function '__builtin_memcpy' drvconn.c: In function 'PGAPI_DriverConnect': drvconn.c:109:33: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 109 | connStrIn = make_string(szConnStrIn, cbConnStrIn, NULL, 0); | ^~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} In file included from psqlodbc.h:525, from drvconn.c:15: misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ drvconn.c:129:38: warning: pointer targets in passing argument 1 of 'dconn_get_connect_attributes' differ in signedness [-Wpointer-sign] 129 | dconn_get_connect_attributes(connStrIn, ci); | ^~~~~~~~~ | | | char * drvconn.c:61:66: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 61 | void dconn_get_connect_attributes(const SQLCHAR FAR * connect_string, ConnInfo *ci); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ drvconn.c:137:37: warning: pointer targets in passing argument 1 of 'dconn_get_common_attributes' differ in signedness [-Wpointer-sign] 137 | dconn_get_common_attributes(connStrIn, ci); | ^~~~~~~~~ | | | char * drvconn.c:62:61: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 62 | static void dconn_get_common_attributes(const SQLCHAR FAR * connect_string, ConnInfo *ci); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ drvconn.c:274:25: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 274 | strncpy(szConnStrOut, connStrOut, cbConnStrOutMax); | ^~~~~~~~~~~~ | | | SQLCHAR * {aka unsigned char *} In file included from /usr/include/string.h:35, from connection.h:16, from drvconn.c:20: /usr/include/iso/string_iso.h:82:22: note: expected 'char * restrict' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^ drvconn.c:302:50: warning: pointer targets in passing argument 1 of 'hide_password' differ in signedness [-Wpointer-sign] 302 | hide_str = hide_password(szConnStrOut); | ^~~~~~~~~~~~ | | | SQLCHAR * {aka unsigned char *} drvconn.c:42:41: note: expected 'const char *' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 42 | static char * hide_password(const char *str) | ~~~~~~~~~~~~^~~ drvconn.c: In function 'dconn_get_attributes': drvconn.c:435:41: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 435 | if (our_connect_string = strdup(connect_string), NULL == our_connect_string) | ^~~~~~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ convert.c:3745:54: warning: '%0*d' directive writing between 1 and 127 bytes into a region of size between 116 and 126 [-Wformat-overflow=] 3745 | sprintf(chrform, "%d.%0*d", o1val, ns->scale, o2val); | ^~~~ In function 'ResolveNumericParam', inlined from 'ResolveOneParam' at convert.c:4287:8: convert.c:3745:50: note: directive argument in the range [-2147483647, 2147483647] 3745 | sprintf(chrform, "%d.%0*d", o1val, ns->scale, o2val); | ^~~~~~~~~ convert.c:3745:33: note: 'sprintf' output between 4 and 140 bytes into a destination of size 128 3745 | sprintf(chrform, "%d.%0*d", o1val, ns->scale, o2val); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ convert.c: In function 'ResolveOneParam': convert.c:3743:55: warning: '%0*d' directive writing between 1 and 127 bytes into a region of size between 115 and 125 [-Wformat-overflow=] 3743 | sprintf(chrform, "-%d.%0*d", o1val, ns->scale, o2val); | ^~~~ In function 'ResolveNumericParam', inlined from 'ResolveOneParam' at convert.c:4287:8: convert.c:3743:50: note: directive argument in the range [-2147483647, 2147483647] 3743 | sprintf(chrform, "-%d.%0*d", o1val, ns->scale, o2val); | ^~~~~~~~~~ convert.c:3743:33: note: 'sprintf' output between 5 and 141 bytes into a destination of size 128 3743 | sprintf(chrform, "-%d.%0*d", o1val, ns->scale, o2val); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT drvconn.lo -MD -MP -MF .deps/drvconn.Tpo -c drvconn.c -o drvconn.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT connection.lo -MD -MP -MF .deps/connection.Tpo -c connection.c -o connection.o >/dev/null 2>&1 if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT environ.lo -MD -MP -MF ".deps/environ.Tpo" -c -o environ.lo environ.c; \ then mv -f ".deps/environ.Tpo" ".deps/environ.Plo"; else rm -f ".deps/environ.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT environ.lo -MD -MP -MF .deps/environ.Tpo -c environ.c -fPIC -DPIC -o .libs/environ.o environ.c: In function 'pg_sqlstate_set': environ.c:126:16: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 126 | strcpy(szSqlState, EN_is_odbc3(env) ? ver3str : ver2str); | ^~~~~~~~~~ | | | UCHAR * {aka unsigned char *} In file included from /usr/include/string.h:35, from connection.h:16, from environ.c:18: /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'UCHAR *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ environ.c:126:55: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] 126 | strcpy(szSqlState, EN_is_odbc3(env) ? ver3str : ver2str); /usr/include/iso/string_iso.h:75:43: note: expected 'const char * restrict' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ environ.c: In function 'ER_ReturnError': environ.c:259:30: warning: pointer targets in passing argument 1 of 'strncpy_null' differ in signedness [-Wpointer-sign] 259 | strncpy_null(szSqlState, error->sqlstate, 6); | ^~~~~~~~~~ | | | SQLCHAR * {aka unsigned char *} In file included from psqlodbc.h:525, from environ.h:16, from environ.c:16: misc.h:130:32: note: expected 'char *' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 130 | char *strncpy_null(char *dst, const char *src, ssize_t len); | ~~~~~~^~~ environ.c: In function 'PGAPI_ConnectError': environ.c:304:32: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 304 | strcpy(szSqlState, "00000"); | ^~~~~~~~~~ | | | SQLCHAR * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ environ.c:324:30: warning: pointer targets in passing argument 1 of 'strncpy_null' differ in signedness [-Wpointer-sign] 324 | strncpy_null(szErrorMsg, msg, cbErrorMsgMax); | ^~~~~~~~~~ | | | SQLCHAR * {aka unsigned char *} misc.h:130:32: note: expected 'char *' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 130 | char *strncpy_null(char *dst, const char *src, ssize_t len); | ~~~~~~^~~ environ.c:331:32: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 331 | strcpy(szSqlState, conn->sqlstate); | ^~~~~~~~~~ | | | SQLCHAR * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ environ.c:336:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 336 | pg_sqlstate_set(env, szSqlState, "01S02", "01S02"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:336:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 336 | pg_sqlstate_set(env, szSqlState, "01S02", "01S02"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:339:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 339 | pg_sqlstate_set(env, szSqlState, "01004", "01004"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:339:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 339 | pg_sqlstate_set(env, szSqlState, "01004", "01004"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:343:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 343 | pg_sqlstate_set(env, szSqlState, "IM002", "IM002"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:343:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 343 | pg_sqlstate_set(env, szSqlState, "IM002", "IM002"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:348:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 348 | pg_sqlstate_set(env, szSqlState, "08001", "08001"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:348:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 348 | pg_sqlstate_set(env, szSqlState, "08001", "08001"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:353:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 353 | pg_sqlstate_set(env, szSqlState, "28000", "28000"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:353:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 353 | pg_sqlstate_set(env, szSqlState, "28000", "28000"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:356:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 356 | pg_sqlstate_set(env, szSqlState, "HY001", "S1001"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:356:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 356 | pg_sqlstate_set(env, szSqlState, "HY001", "S1001"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:360:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 360 | pg_sqlstate_set(env, szSqlState, "HY000", "S1000"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:360:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 360 | pg_sqlstate_set(env, szSqlState, "HY000", "S1000"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:364:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 364 | pg_sqlstate_set(env, szSqlState, "HYC00", "IM001"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:364:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 364 | pg_sqlstate_set(env, szSqlState, "HYC00", "IM001"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:368:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 368 | pg_sqlstate_set(env, szSqlState, "HY009", "S1009"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:368:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 368 | pg_sqlstate_set(env, szSqlState, "HY009", "S1009"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:372:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 372 | pg_sqlstate_set(env, szSqlState, "HY010", "S1010"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:372:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 372 | pg_sqlstate_set(env, szSqlState, "HY010", "S1010"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:381:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 381 | pg_sqlstate_set(env, szSqlState, "HY001", "S1001"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:381:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 381 | pg_sqlstate_set(env, szSqlState, "HY001", "S1001"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:384:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 384 | pg_sqlstate_set(env, szSqlState, "HYC00", "S1C00"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:384:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 384 | pg_sqlstate_set(env, szSqlState, "HYC00", "S1C00"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:387:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 387 | pg_sqlstate_set(env, szSqlState, "HY019", "22003"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:387:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 387 | pg_sqlstate_set(env, szSqlState, "HY019", "22003"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:393:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 393 | pg_sqlstate_set(env, szSqlState, "08S01", "08S01"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:393:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 393 | pg_sqlstate_set(env, szSqlState, "08S01", "08S01"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:396:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 396 | pg_sqlstate_set(env, szSqlState, "HY000", "S1000"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:396:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 396 | pg_sqlstate_set(env, szSqlState, "HY000", "S1000"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c: In function 'PGAPI_EnvError': environ.c:436:58: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 436 | pg_sqlstate_set(env, szSqlState, "00000", "00000"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:436:67: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 436 | pg_sqlstate_set(env, szSqlState, "00000", "00000"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:449:30: warning: pointer targets in passing argument 1 of 'strncpy_null' differ in signedness [-Wpointer-sign] 449 | strncpy_null(szErrorMsg, msg, cbErrorMsgMax); | ^~~~~~~~~~ | | | SQLCHAR * {aka unsigned char *} misc.h:130:32: note: expected 'char *' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 130 | char *strncpy_null(char *dst, const char *src, ssize_t len); | ~~~~~~^~~ environ.c:459:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 459 | pg_sqlstate_set(env, szSqlState, "HY001", "S1001"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:459:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 459 | pg_sqlstate_set(env, szSqlState, "HY001", "S1001"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:462:66: warning: pointer targets in passing argument 3 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 462 | pg_sqlstate_set(env, szSqlState, "HY000", "S1000"); | ^~~~~~~ | | | char * environ.c:124:78: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c:462:75: warning: pointer targets in passing argument 4 of 'pg_sqlstate_set' differ in signedness [-Wpointer-sign] 462 | pg_sqlstate_set(env, szSqlState, "HY000", "S1000"); | ^~~~~~~ | | | char * environ.c:124:100: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 124 | pg_sqlstate_set(const EnvironmentClass *env, UCHAR *szSqlState, const UCHAR *ver3str, const UCHAR *ver2str) | ~~~~~~~~~~~~~^~~~~~~ environ.c: In function 'PGAPI_Error': environ.c:503:32: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 503 | strcpy(szSqlState, "00000"); | ^~~~~~~~~~ | | | SQLCHAR * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ In function 'processParameters', inlined from 'convert_escape' at convert.c:5005:16: convert.c:4774:35: warning: 'param_pos' may be used uninitialized [-Wmaybe-uninitialized] 4774 | if (param_pos[param_count][0] >= 0) | ~~~~~~~~~~~~~~~~~~~~~~^~~ convert.c: In function 'convert_escape': convert.c:4972:25: note: 'param_pos' declared here 4972 | SQLLEN param_pos[16][2]; | ^~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT environ.lo -MD -MP -MF .deps/environ.Tpo -c environ.c -o environ.o >/dev/null 2>&1 convert.c: In function 'copy_statement_with_parameters': convert.c:2956:25: warning: 'sprintf' argument 3 overlaps destination object 'new_statement' [-Wrestrict] 2956 | sprintf(new_statement, "%sdeclare \"%s\"%s cursor%s for ", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2957 | new_statement, SC_cursor_name(stmt), opt_scroll, opt_hold); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT execute.lo -MD -MP -MF ".deps/execute.Tpo" -c -o execute.lo execute.c; \ then mv -f ".deps/execute.Tpo" ".deps/execute.Plo"; else rm -f ".deps/execute.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT info.lo -MD -MP -MF .deps/info.Tpo -c info.c -o info.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT execute.lo -MD -MP -MF .deps/execute.Tpo -c execute.c -fPIC -DPIC -o .libs/execute.o execute.c: In function 'PGAPI_Prepare': execute.c:115:47: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 115 | self->statement = make_string(szSqlStr, cbSqlStr, NULL, 0); | ^~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} In file included from psqlodbc.h:525, from execute.c:16: misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ execute.c: In function 'PGAPI_ExecDirect': execute.c:165:39: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 165 | stmt->statement = make_string(szSqlStr, cbSqlStr, NULL, 0); | ^~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ execute.c: In function 'Exec_with_parameters_resolved': execute.c:477:41: warning: variable 'begin_included' set but not used [-Wunused-but-set-variable] 477 | begin_included = FALSE; | ^~~~~~~~~~~~~~ execute.c: In function 'PGAPI_Execute': execute.c:922:26: warning: variable 'conn' set but not used [-Wunused-but-set-variable] 922 | ConnectionClass *conn; | ^~~~ execute.c: In function 'PGAPI_Cancel': execute.c:1252:21: warning: variable 'ci' set but not used [-Wunused-but-set-variable] 1252 | ConnInfo *ci; | ^~ execute.c: In function 'PGAPI_NativeSql': execute.c:1374:52: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 1374 | ptr = (cbSqlStrIn == 0) ? "" : make_string(szSqlStrIn, cbSqlStrIn, NULL, 0); | ^~~~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ execute.c:1386:30: warning: pointer targets in passing argument 1 of 'strncpy_null' differ in signedness [-Wpointer-sign] 1386 | strncpy_null(szSqlStr, ptr, cbSqlStrMax); | ^~~~~~~~ | | | SQLCHAR * {aka unsigned char *} misc.h:130:32: note: expected 'char *' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 130 | char *strncpy_null(char *dst, const char *src, ssize_t len); | ~~~~~~^~~ execute.c: In function 'PGAPI_ParamData': execute.c:1422:21: warning: variable 'ci' set but not used [-Wunused-but-set-variable] 1422 | ConnInfo *ci; | ^~ execute.c: In function 'PGAPI_PutData': execute.c:1655:46: warning: pointer targets in passing argument 2 of 'pg_hex2bin' differ in signedness [-Wpointer-sign] 1655 | pg_hex2bin(rgbValue, allocbuf, putlen); | ^~~~~~~~ | | | char * In file included from execute.c:30: convert.h:56:52: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 56 | SQLLEN pg_hex2bin(const UCHAR *in, UCHAR *out, SQLLEN len); | ~~~~~~~^~~ if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT lobj.lo -MD -MP -MF ".deps/lobj.Tpo" -c -o lobj.lo lobj.c; \ then mv -f ".deps/lobj.Tpo" ".deps/lobj.Plo"; else rm -f ".deps/lobj.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT execute.lo -MD -MP -MF .deps/execute.Tpo -c execute.c -o execute.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT lobj.lo -MD -MP -MF .deps/lobj.Tpo -c lobj.c -fPIC -DPIC -o .libs/lobj.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT convert.lo -MD -MP -MF .deps/convert.Tpo -c convert.c -o convert.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT lobj.lo -MD -MP -MF .deps/lobj.Tpo -c lobj.c -o lobj.o >/dev/null 2>&1 if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT md5.lo -MD -MP -MF ".deps/md5.Tpo" -c -o md5.lo md5.c; \ then mv -f ".deps/md5.Tpo" ".deps/md5.Plo"; else rm -f ".deps/md5.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c md5.c -fPIC -DPIC -o .libs/md5.o if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT misc.lo -MD -MP -MF ".deps/misc.Tpo" -c -o misc.lo misc.c; \ then mv -f ".deps/misc.Tpo" ".deps/misc.Plo"; else rm -f ".deps/misc.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c md5.c -o md5.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c misc.c -fPIC -DPIC -o .libs/misc.o if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT options.lo -MD -MP -MF ".deps/options.Tpo" -c -o options.lo options.c; \ then mv -f ".deps/options.Tpo" ".deps/options.Plo"; else rm -f ".deps/options.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c misc.c -o misc.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT options.lo -MD -MP -MF .deps/options.Tpo -c options.c -fPIC -DPIC -o .libs/options.o if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT pgtypes.lo -MD -MP -MF ".deps/pgtypes.Tpo" -c -o pgtypes.lo pgtypes.c; \ then mv -f ".deps/pgtypes.Tpo" ".deps/pgtypes.Plo"; else rm -f ".deps/pgtypes.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT options.lo -MD -MP -MF .deps/options.Tpo -c options.c -o options.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT pgtypes.lo -MD -MP -MF .deps/pgtypes.Tpo -c pgtypes.c -fPIC -DPIC -o .libs/pgtypes.o pgtypes.c: In function 'pgtype_attr_column_size': pgtypes.c:924:66: warning: passing argument 1 of 'CC_get_max_idlen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 924 | value = CC_get_max_idlen(conn); | ^~~~ In file included from dlg_specific.h:13, from pgtypes.c:21: connection.h:563:51: note: expected 'ConnectionClass *' {aka 'struct ConnectionClass_ *'} but argument is of type 'const ConnectionClass *' {aka 'const struct ConnectionClass_ *'} 563 | int CC_get_max_idlen(ConnectionClass *self); | ~~~~~~~~~~~~~~~~~^~~~ if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT psqlodbc.lo -MD -MP -MF ".deps/psqlodbc.Tpo" -c -o psqlodbc.lo psqlodbc.c; \ then mv -f ".deps/psqlodbc.Tpo" ".deps/psqlodbc.Plo"; else rm -f ".deps/psqlodbc.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT psqlodbc.lo -MD -MP -MF .deps/psqlodbc.Tpo -c psqlodbc.c -fPIC -DPIC -o .libs/psqlodbc.o psqlodbc.c:95:13: warning: 'finalize_global_cs' defined but not used [-Wunused-function] 95 | static void finalize_global_cs(void) | ^~~~~~~~~~~~~~~~~~ if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT qresult.lo -MD -MP -MF ".deps/qresult.Tpo" -c -o qresult.lo qresult.c; \ then mv -f ".deps/qresult.Tpo" ".deps/qresult.Plo"; else rm -f ".deps/qresult.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT psqlodbc.lo -MD -MP -MF .deps/psqlodbc.Tpo -c psqlodbc.c -o psqlodbc.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT qresult.lo -MD -MP -MF .deps/qresult.Tpo -c qresult.c -fPIC -DPIC -o .libs/qresult.o if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT results.lo -MD -MP -MF ".deps/results.Tpo" -c -o results.lo results.c; \ then mv -f ".deps/results.Tpo" ".deps/results.Plo"; else rm -f ".deps/results.Tpo"; exit 1; fi qresult.c: In function 'QR_next_tuple': qresult.c:839:25: warning: variable 'msg_truncated' set but not used [-Wunused-but-set-variable] 839 | BOOL msg_truncated, rcvend, internally_invoked = FALSE; | ^~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT results.lo -MD -MP -MF .deps/results.Tpo -c results.c -fPIC -DPIC -o .libs/results.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT pgtypes.lo -MD -MP -MF .deps/pgtypes.Tpo -c pgtypes.c -o pgtypes.o >/dev/null 2>&1 results.c: In function 'PGAPI_RowCount': results.c:48:21: warning: variable 'ci' set but not used [-Wunused-but-set-variable] 48 | ConnInfo *ci; | ^~ results.c: In function 'PGAPI_NumResultCols': results.c:154:21: warning: variable 'ci' set but not used [-Wunused-but-set-variable] 154 | ConnInfo *ci; | ^~ results.c: In function 'PGAPI_DescribeCol': results.c:380:30: warning: pointer targets in passing argument 1 of 'strncpy_null' differ in signedness [-Wpointer-sign] 380 | strncpy_null(szColName, col_name, cbColNameMax); | ^~~~~~~~~ | | | SQLCHAR * {aka unsigned char *} In file included from psqlodbc.h:525, from results.c:18: misc.h:130:32: note: expected 'char *' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 130 | char *strncpy_null(char *dst, const char *src, ssize_t len); | ~~~~~~^~~ results.c: In function 'PGAPI_GetData': results.c:920:21: warning: variable 'ci' set but not used [-Wunused-but-set-variable] 920 | ConnInfo *ci; | ^~ results.c: In function 'getNthValid': results.c:1246:36: warning: pointer targets in initialization of 'long int *' from 'long unsigned int *' differ in signedness [-Wpointer-sign] 1246 | SQLLEN *deleted = res->deleted; | ^~~ results.c: In function 'PGAPI_ExtendedFetch': results.c:1415:21: warning: variable 'ci' set but not used [-Wunused-but-set-variable] 1415 | ConnInfo *ci; | ^~ results.c:1411:25: warning: variable 'save_rowset_start' set but not used [-Wunused-but-set-variable] 1411 | SQLLEN save_rowset_start, | ^~~~~~~~~~~~~~~~~ results.c: In function 'SC_pos_update': results.c:3742:47: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 3742 | ret = PGAPI_ExecDirect(hstmt, updstr, SQL_NTS, 0); | ^~~~~~ | | | char * In file included from results.c:34: pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ results.c: In function 'SC_pos_add': results.c:4163:47: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 4163 | ret = PGAPI_ExecDirect(hstmt, addstr, SQL_NTS, 0); | ^~~~~~ | | | char * pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from connection.h:17, from dlg_specific.h:13, from results.c:22: results.c: In function 'PGAPI_SetCursorName': results.c:4532:49: warning: pointer targets in passing argument 1 of 'make_string' differ in signedness [-Wpointer-sign] 4532 | SET_NAME(stmt->cursor_name, make_string(szCursor, cbCursor, NULL, 0)); | ^~~~~~~~ | | | const SQLCHAR * {aka const unsigned char *} descriptor.h:83:53: note: in definition of macro 'SET_NAME' 83 | #define SET_NAME(the_name, str) ((the_name).name = (str)) | ^~~ misc.h:135:37: note: expected 'const char *' but argument is of type 'const SQLCHAR *' {aka 'const unsigned char *'} 135 | char *make_string(const char *s, ssize_t len, char *buf, size_t bufsize); | ~~~~~~~~~~~~^ results.c: In function 'PGAPI_GetCursorName': results.c:4562:30: warning: pointer targets in passing argument 1 of 'strncpy_null' differ in signedness [-Wpointer-sign] 4562 | strncpy_null(szCursor, SC_cursor_name(stmt), cbCursorMax); | ^~~~~~~~ | | | SQLCHAR * {aka unsigned char *} misc.h:130:32: note: expected 'char *' but argument is of type 'SQLCHAR *' {aka 'unsigned char *'} 130 | char *strncpy_null(char *dst, const char *src, ssize_t len); | ~~~~~~^~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT qresult.lo -MD -MP -MF .deps/qresult.Tpo -c qresult.c -o qresult.o >/dev/null 2>&1 if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT socket.lo -MD -MP -MF ".deps/socket.Tpo" -c -o socket.lo socket.c; \ then mv -f ".deps/socket.Tpo" ".deps/socket.Plo"; else rm -f ".deps/socket.Tpo"; exit 1; fi if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT parse.lo -MD -MP -MF ".deps/parse.Tpo" -c -o parse.lo parse.c; \ then mv -f ".deps/parse.Tpo" ".deps/parse.Plo"; else rm -f ".deps/parse.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT socket.lo -MD -MP -MF .deps/socket.Tpo -c socket.c -fPIC -DPIC -o .libs/socket.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT parse.lo -MD -MP -MF .deps/parse.Tpo -c parse.c -fPIC -DPIC -o .libs/parse.o In file included from bind.h:13, from statement.h:16, from parse.c:31: parse.c: In function 'getColumnsInfo': descriptor.h:22:68: warning: pointer targets in passing argument 4 of 'PGAPI_Columns' differ in signedness [-Wpointer-sign] 22 | #define SAFE_NAME(the_name) ((the_name).name ? (the_name).name : NULL_STRING) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | const char * parse.c:808:60: note: in expansion of macro 'SAFE_NAME' 808 | result = PGAPI_Columns(hcol_stmt, NULL, 0, SAFE_NAME(wti->schema_name), | ^~~~~~~~~ In file included from parse.c:35: pgapifunc.h:39:42: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 39 | const SQLCHAR *SchemaName, SQLSMALLINT NameLength2, | ~~~~~~~~~~~~~~~^~~~~~~~~~ descriptor.h:22:68: warning: pointer targets in passing argument 6 of 'PGAPI_Columns' differ in signedness [-Wpointer-sign] 22 | #define SAFE_NAME(the_name) ((the_name).name ? (the_name).name : NULL_STRING) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | const char * parse.c:809:35: note: in expansion of macro 'SAFE_NAME' 809 | SQL_NTS, SAFE_NAME(wti->table_name), SQL_NTS, NULL, 0, PODBC_NOT_SEARCH_PATTERN, 0, 0); | ^~~~~~~~~ pgapifunc.h:40:42: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 40 | const SQLCHAR *TableName, SQLSMALLINT NameLength3, | ~~~~~~~~~~~~~~~^~~~~~~~~ if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT statement.lo -MD -MP -MF ".deps/statement.Tpo" -c -o statement.lo statement.c; \ then mv -f ".deps/statement.Tpo" ".deps/statement.Plo"; else rm -f ".deps/statement.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT statement.lo -MD -MP -MF .deps/statement.Tpo -c statement.c -fPIC -DPIC -o .libs/statement.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT socket.lo -MD -MP -MF .deps/socket.Tpo -c socket.c -o socket.o >/dev/null 2>&1 statement.c: In function 'PGAPI_AllocStmt': statement.c:170:26: warning: variable 'bookmark' set but not used [-Wunused-but-set-variable] 170 | BindInfoClass *bookmark; | ^~~~~~~~ statement.c: In function 'SendSyncAndReceive': statement.c:2372:41: warning: variable 'msg_truncated' set but not used [-Wunused-but-set-variable] 2372 | BOOL rcvend = FALSE, msg_truncated; | ^~~~~~~~~~~~~ results.c: In function 'SC_pos_update': results.c:3669:60: warning: ' "' directive writing 2 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 3669 | sprintf(updstr, "%s \"%s\" = ?", updstr, GET_NAME(fi[i]->column_name)); | ^~~ results.c:3669:41: note: 'sprintf' output 8 or more bytes (assuming 4103) into a destination of size 4096 3669 | sprintf(updstr, "%s \"%s\" = ?", updstr, GET_NAME(fi[i]->column_name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ results.c:3669:41: warning: 'sprintf' argument 3 overlaps destination object 'updstr' [-Wrestrict] results.c:3603:25: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 3603 | char updstr[4096]; | ^~~~~~ results.c:3667:60: warning: ', "' directive writing 3 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 3667 | sprintf(updstr, "%s, \"%s\" = ?", updstr, GET_NAME(fi[i]->column_name)); | ^~~~ results.c:3667:41: note: 'sprintf' output 9 or more bytes (assuming 4104) into a destination of size 4096 3667 | sprintf(updstr, "%s, \"%s\" = ?", updstr, GET_NAME(fi[i]->column_name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ results.c:3667:41: warning: 'sprintf' argument 3 overlaps destination object 'updstr' [-Wrestrict] results.c:3603:25: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 3603 | char updstr[4096]; | ^~~~~~ results.c:3689:36: warning: ' where ctid = '(' directive writing 16 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 3689 | sprintf(updstr, "%s where ctid = '(%u, %u)'", updstr, | ^~~~~~~~~~~~~~~~ results.c:3689:33: note: directive argument in the range [0, 65535] 3689 | sprintf(updstr, "%s where ctid = '(%u, %u)'", updstr, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ results.c:3689:17: note: 'sprintf' output between 23 and 4131 bytes into a destination of size 4096 3689 | sprintf(updstr, "%s where ctid = '(%u, %u)'", updstr, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3690 | blocknum, pgoffset); | ~~~~~~~~~~~~~~~~~~~ results.c:3689:17: warning: 'sprintf' argument 3 overlaps destination object 'updstr' [-Wrestrict] results.c:3603:25: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 3603 | char updstr[4096]; | ^~~~~~ results.c: In function 'SC_pos_add': results.c:4127:64: warning: '"' directive writing 1 byte into a region of size between 0 and 4095 [-Wformat-overflow=] 4127 | sprintf(addstr, "%s\"%s\"", addstr, GET_NAME(fi[i]->column_name)); | ^~ results.c:4127:41: note: 'sprintf' output 3 or more bytes (assuming 4098) into a destination of size 4096 4127 | sprintf(addstr, "%s\"%s\"", addstr, GET_NAME(fi[i]->column_name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ results.c:4127:41: warning: 'sprintf' argument 3 overlaps destination object 'addstr' [-Wrestrict] results.c:4062:25: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 4062 | char addstr[4096]; | ^~~~~~ results.c:4125:60: warning: ', "' directive writing 3 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 4125 | sprintf(addstr, "%s, \"%s\"", addstr, GET_NAME(fi[i]->column_name)); | ^~~~ results.c:4125:41: note: 'sprintf' output 5 or more bytes (assuming 4100) into a destination of size 4096 4125 | sprintf(addstr, "%s, \"%s\"", addstr, GET_NAME(fi[i]->column_name)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ results.c:4125:41: warning: 'sprintf' argument 3 overlaps destination object 'addstr' [-Wrestrict] results.c:4062:25: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 4062 | char addstr[4096]; | ^~~~~~ results.c:4149:36: warning: ') values (' directive writing 10 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 4149 | sprintf(addstr, "%s) values (", addstr); | ^~~~~~~~~~ results.c:4149:17: note: 'sprintf' output between 11 and 4106 bytes into a destination of size 4096 4149 | sprintf(addstr, "%s) values (", addstr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ results.c:4149:17: warning: 'sprintf' argument 3 overlaps destination object 'addstr' [-Wrestrict] results.c:4062:25: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 4062 | char addstr[4096]; | ^~~~~~ if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT tuple.lo -MD -MP -MF ".deps/tuple.Tpo" -c -o tuple.lo tuple.c; \ then mv -f ".deps/tuple.Tpo" ".deps/tuple.Plo"; else rm -f ".deps/tuple.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT tuple.lo -MD -MP -MF .deps/tuple.Tpo -c tuple.c -fPIC -DPIC -o .libs/tuple.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT results.lo -MD -MP -MF .deps/results.Tpo -c results.c -o results.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT tuple.lo -MD -MP -MF .deps/tuple.Tpo -c tuple.c -o tuple.o >/dev/null 2>&1 if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT dlg_specific.lo -MD -MP -MF ".deps/dlg_specific.Tpo" -c -o dlg_specific.lo dlg_specific.c; \ then mv -f ".deps/dlg_specific.Tpo" ".deps/dlg_specific.Plo"; else rm -f ".deps/dlg_specific.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT parse.lo -MD -MP -MF .deps/parse.Tpo -c parse.c -o parse.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT statement.lo -MD -MP -MF .deps/statement.Tpo -c statement.c -o statement.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT dlg_specific.lo -MD -MP -MF .deps/dlg_specific.Tpo -c dlg_specific.c -fPIC -DPIC -o .libs/dlg_specific.o dlg_specific.c: In function 'makeConnectString': dlg_specific.c:177:18: warning: pointer targets in passing argument 1 of 'encode' differ in signedness [-Wpointer-sign] 177 | encode(ci->password, encoded_item, sizeof(encoded_item)); | ~~^~~~~~~~~~ | | | const char * dlg_specific.c:30:33: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 30 | static void encode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~~~~~~~^~ dlg_specific.c:177:30: warning: pointer targets in passing argument 2 of 'encode' differ in signedness [-Wpointer-sign] 177 | encode(ci->password, encoded_item, sizeof(encoded_item)); | ^~~~~~~~~~~~ | | | char * dlg_specific.c:30:44: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 30 | static void encode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~^~~ dlg_specific.c:194:18: warning: pointer targets in passing argument 1 of 'encode' differ in signedness [-Wpointer-sign] 194 | encode(ci->conn_settings, encoded_item, sizeof(encoded_item)); | ~~^~~~~~~~~~~~~~~ | | | const char * dlg_specific.c:30:33: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 30 | static void encode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~~~~~~~^~ dlg_specific.c:194:35: warning: pointer targets in passing argument 2 of 'encode' differ in signedness [-Wpointer-sign] 194 | encode(ci->conn_settings, encoded_item, sizeof(encoded_item)); | ^~~~~~~~~~~~ | | | char * dlg_specific.c:30:44: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 30 | static void encode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~^~~ dlg_specific.c: In function 'copyAttributes': dlg_specific.c:500:24: warning: pointer targets in passing argument 1 of 'decode' differ in signedness [-Wpointer-sign] 500 | decode(value, ci->password, sizeof(ci->password)); | ^~~~~ | | | const char * dlg_specific.c:31:33: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 31 | static void decode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~~~~~~~^~ dlg_specific.c:500:33: warning: pointer targets in passing argument 2 of 'decode' differ in signedness [-Wpointer-sign] 500 | decode(value, ci->password, sizeof(ci->password)); | ~~^~~~~~~~~~ | | | char * dlg_specific.c:31:44: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 31 | static void decode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~^~~ dlg_specific.c:551:32: warning: pointer targets in passing argument 1 of 'decode' differ in signedness [-Wpointer-sign] 551 | decode(value, ci->conn_settings, sizeof(ci->conn_settings)); | ^~~~~ | | | const char * dlg_specific.c:31:33: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 31 | static void decode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~~~~~~~^~ dlg_specific.c:551:41: warning: pointer targets in passing argument 2 of 'decode' differ in signedness [-Wpointer-sign] 551 | decode(value, ci->conn_settings, sizeof(ci->conn_settings)); | ~~^~~~~~~~~~~~~~~ | | | char * dlg_specific.c:31:44: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 31 | static void decode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~^~~ dlg_specific.c:632:226: warning: the comparison will always evaluate as 'true' for the address of 'password' will never be NULL [-Waddress] 632 | mylog("%s: DSN='%s',server='%s',dbase='%s',user='%s',passwd='%s',port='%s',onlyread='%s',protocol='%s',conn_settings='%s',disallow_premature=%d)\n", func, ci->dsn, ci->server, ci->database, ci->username, ci->password ? "xxxxx" : "", ci->port, ci->onlyread, ci->protocol, ci->conn_settings, ci->disallow_premature); | ^ In file included from dlg_specific.h:13, from dlg_specific.c:21: connection.h:288:25: note: 'password' declared here 288 | char password[MEDIUM_REGISTRY_LEN]; | ^~~~~~~~ dlg_specific.c: In function 'getDSNinfo': dlg_specific.c:835:24: warning: pointer targets in passing argument 1 of 'decode' differ in signedness [-Wpointer-sign] 835 | decode(encoded_item, ci->password, sizeof(ci->password)); | ^~~~~~~~~~~~ | | | char * dlg_specific.c:31:33: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 31 | static void decode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~~~~~~~^~ dlg_specific.c:835:40: warning: pointer targets in passing argument 2 of 'decode' differ in signedness [-Wpointer-sign] 835 | decode(encoded_item, ci->password, sizeof(ci->password)); | ~~^~~~~~~~~~ | | | char * dlg_specific.c:31:44: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 31 | static void decode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~^~~ dlg_specific.c:874:24: warning: pointer targets in passing argument 1 of 'decode' differ in signedness [-Wpointer-sign] 874 | decode(encoded_item, ci->conn_settings, sizeof(ci->conn_settings)); | ^~~~~~~~~~~~ | | | char * dlg_specific.c:31:33: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 31 | static void decode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~~~~~~~^~ dlg_specific.c:874:40: warning: pointer targets in passing argument 2 of 'decode' differ in signedness [-Wpointer-sign] 874 | decode(encoded_item, ci->conn_settings, sizeof(ci->conn_settings)); | ~~^~~~~~~~~~~~~~~ | | | char * dlg_specific.c:31:44: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 31 | static void decode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~^~~ dlg_specific.c:979:31: warning: the comparison will always evaluate as 'true' for the address of 'password' will never be NULL [-Waddress] 979 | ci->password ? "xxxxx" : ""); | ^ connection.h:288:25: note: 'password' declared here 288 | char password[MEDIUM_REGISTRY_LEN]; | ^~~~~~~~ dlg_specific.c:989:65: warning: pointer targets in passing argument 1 of 'check_client_encoding' differ in signedness [-Wpointer-sign] 989 | char *enc = (char *) check_client_encoding(ci->conn_settings); | ~~^~~~~~~~~~~~~~~ | | | char * In file included from dlg_specific.c:25: multibyte.h:103:43: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 103 | UCHAR *check_client_encoding(const UCHAR *sql_string); | ~~~~~~~~~~~~~^~~~~~~~~~ dlg_specific.c: In function 'writeDSNinfo': dlg_specific.c:1137:18: warning: pointer targets in passing argument 1 of 'encode' differ in signedness [-Wpointer-sign] 1137 | encode(ci->password, encoded_item, sizeof(encoded_item)); | ~~^~~~~~~~~~ | | | const char * dlg_specific.c:30:33: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 30 | static void encode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~~~~~~~^~ dlg_specific.c:1137:30: warning: pointer targets in passing argument 2 of 'encode' differ in signedness [-Wpointer-sign] 1137 | encode(ci->password, encoded_item, sizeof(encoded_item)); | ^~~~~~~~~~~~ | | | char * dlg_specific.c:30:44: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 30 | static void encode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~^~~ dlg_specific.c:1177:18: warning: pointer targets in passing argument 1 of 'encode' differ in signedness [-Wpointer-sign] 1177 | encode(ci->conn_settings, encoded_item, sizeof(encoded_item)); | ~~^~~~~~~~~~~~~~~ | | | const char * dlg_specific.c:30:33: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'const char *' 30 | static void encode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~~~~~~~^~ dlg_specific.c:1177:35: warning: pointer targets in passing argument 2 of 'encode' differ in signedness [-Wpointer-sign] 1177 | encode(ci->conn_settings, encoded_item, sizeof(encoded_item)); | ^~~~~~~~~~~~ | | | char * dlg_specific.c:30:44: note: expected 'UCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 30 | static void encode(const UCHAR *in, UCHAR *out, int outlen); | ~~~~~~~^~~ dlg_specific.c: In function 'encode': dlg_specific.c:1455:33: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 1455 | size_t i, ilen = strlen(in), | ^~ | | | const UCHAR * {aka const unsigned char *} In file included from /usr/include/string.h:35, from connection.h:16: /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ dlg_specific.c:1466:33: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 1466 | sprintf(&out[o], "%%2B"); | ^~~~~~~ | | | UCHAR * {aka unsigned char *} In file included from /usr/include/stdio.h:82, from psqlodbc.h:24, from dlg_specific.h:12: /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'UCHAR *' {aka 'unsigned char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ dlg_specific.c:1475:33: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 1475 | sprintf(&out[o], "%%%02x", inc); | ^~~~~~~ | | | UCHAR * {aka unsigned char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'UCHAR *' {aka 'unsigned char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ dlg_specific.c: In function 'decode': dlg_specific.c:1509:33: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 1509 | size_t i, ilen = strlen(in), | ^~ | | | const UCHAR * {aka const unsigned char *} /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ dlg_specific.c:1520:33: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 1520 | sprintf(&out[o++], "%c", conv_from_hex(&in[i])); | ^~~~~~~~~ | | | UCHAR * {aka unsigned char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'UCHAR *' {aka 'unsigned char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ dlg_specific.c: In function 'extract_attribute_setting': dlg_specific.c:1600:51: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] 1600 | if (0 != strnicmp(cptr, "set", 3)) | ^~~~ | | | const UCHAR * {aka const unsigned char *} /usr/include/string.h:134:24: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 134 | extern int strncasecmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ dlg_specific.c:1609:51: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] 1609 | if (0 != strnicmp(cptr, attr, attrlen)) | ^~~~ | | | const UCHAR * {aka const unsigned char *} /usr/include/string.h:134:24: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 134 | extern int strncasecmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ dlg_specific.c:1619:51: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] 1619 | if (0 != strnicmp(cptr, "=", 1)) | ^~~~ | | | const UCHAR * {aka const unsigned char *} /usr/include/string.h:134:24: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 134 | extern int strncasecmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ dlg_specific.c:1622:59: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] 1622 | if (0 != strnicmp(cptr, "to", 2)) | ^~~~ | | | const UCHAR * {aka const unsigned char *} /usr/include/string.h:134:24: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 134 | extern int strncasecmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ dlg_specific.c:1649:16: warning: pointer targets in returning 'UCHAR *' {aka 'unsigned char *'} from a function with return type 'char *' differ in signedness [-Wpointer-sign] 1649 | return rptr; | ^~~~ dlg_specific.c: In function 'extract_extra_attribute_setting': dlg_specific.c:1724:51: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] 1724 | if (0 != strnicmp(cptr, attr, attrlen)) | ^~~~ | | | const UCHAR * {aka const unsigned char *} /usr/include/string.h:134:24: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 134 | extern int strncasecmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ dlg_specific.c:1756:16: warning: pointer targets in returning 'UCHAR *' {aka 'unsigned char *'} from a function with return type 'char *' differ in signedness [-Wpointer-sign] 1756 | return rptr; | ^~~~ dlg_specific.c: In function 'writeDSNinfo': dlg_specific.c:1169:35: warning: '%d' directive writing between 1 and 3 bytes into a region of size between 0 and 9 [-Wformat-overflow=] 1169 | sprintf(temp, "%s-%d", ci->protocol, ci->rollback_on_error); | ^~ dlg_specific.c:1169:31: note: directive argument in the range [0, 127] 1169 | sprintf(temp, "%s-%d", ci->protocol, ci->rollback_on_error); | ^~~~~~~ dlg_specific.c:1169:17: note: 'sprintf' output between 3 and 14 bytes into a destination of size 10 1169 | sprintf(temp, "%s-%d", ci->protocol, ci->rollback_on_error); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT dlg_specific.lo -MD -MP -MF .deps/dlg_specific.Tpo -c dlg_specific.c -o dlg_specific.o >/dev/null 2>&1 if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT loadlib.lo -MD -MP -MF ".deps/loadlib.Tpo" -c -o loadlib.lo loadlib.c; \ then mv -f ".deps/loadlib.Tpo" ".deps/loadlib.Plo"; else rm -f ".deps/loadlib.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT loadlib.lo -MD -MP -MF .deps/loadlib.Tpo -c loadlib.c -fPIC -DPIC -o .libs/loadlib.o if /usr/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -I/opt/pkg/include/iodbc -I/opt/pkg/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/iodbc -I/usr/include -I/opt/pkg/include -MT multibyte.lo -MD -MP -MF ".deps/multibyte.Tpo" -c -o multibyte.lo multibyte.c; \ then mv -f ".deps/multibyte.Tpo" ".deps/multibyte.Plo"; else rm -f ".deps/multibyte.Tpo"; exit 1; fi loadlib.c:93:9: warning: 'checkproc2' defined but not used [-Wunused-const-variable=] 93 | CSTR checkproc2 = "PQconninfoParse"; | ^~~~~~~~~~ loadlib.c:91:9: warning: 'checkproc1' defined but not used [-Wunused-const-variable=] 91 | CSTR checkproc1 = "PQconnectdbParams"; | ^~~~~~~~~~ loadlib.c:88:9: warning: 'gssapilib' defined but not used [-Wunused-const-variable=] 88 | CSTR gssapilib = "gssapi32"; | ^~~~~~~~~ loadlib.c:84:9: warning: 'libpqlib' defined but not used [-Wunused-const-variable=] 84 | CSTR libpqlib = "libpq"; | ^~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT multibyte.lo -MD -MP -MF .deps/multibyte.Tpo -c multibyte.c -fPIC -DPIC -o .libs/multibyte.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include/iodbc -I/home/pbulk/build/databases/odbc-postgresql/work/.buildlink/include -Wall -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -MT loadlib.lo -MD -MP -MF .deps/loadlib.Tpo -c loadlib.c -o loadlib.o >/dev/null 2>&1 multibyte.c:25:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 25 | { "SQL_ASCII", SQL_ASCII }, | ^~~~~~~~~~~ multibyte.c:25:11: note: (near initialization for 'CS_Table[0].name') multibyte.c:26:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 26 | { "EUC_JP", EUC_JP }, | ^~~~~~~~ multibyte.c:26:11: note: (near initialization for 'CS_Table[1].name') multibyte.c:27:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 27 | { "EUC_CN", EUC_CN }, | ^~~~~~~~ multibyte.c:27:11: note: (near initialization for 'CS_Table[2].name') multibyte.c:28:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 28 | { "EUC_KR", EUC_KR }, | ^~~~~~~~ multibyte.c:28:11: note: (near initialization for 'CS_Table[3].name') multibyte.c:29:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 29 | { "EUC_TW", EUC_TW }, | ^~~~~~~~ multibyte.c:29:11: note: (near initialization for 'CS_Table[4].name') multibyte.c:30:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 30 | { "JOHAB", JOHAB }, /* since 7.3 */ | ^~~~~~~ multibyte.c:30:11: note: (near initialization for 'CS_Table[5].name') multibyte.c:31:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 31 | { "UTF8", UTF8 }, /* since 7.2 */ | ^~~~~~ multibyte.c:31:11: note: (near initialization for 'CS_Table[6].name') multibyte.c:32:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 32 | { "MULE_INTERNAL",MULE_INTERNAL }, | ^~~~~~~~~~~~~~~ multibyte.c:32:11: note: (near initialization for 'CS_Table[7].name') multibyte.c:33:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 33 | { "LATIN1", LATIN1 }, | ^~~~~~~~ multibyte.c:33:11: note: (near initialization for 'CS_Table[8].name') multibyte.c:34:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 34 | { "LATIN2", LATIN2 }, | ^~~~~~~~ multibyte.c:34:11: note: (near initialization for 'CS_Table[9].name') multibyte.c:35:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 35 | { "LATIN3", LATIN3 }, | ^~~~~~~~ multibyte.c:35:11: note: (near initialization for 'CS_Table[10].name') multibyte.c:36:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 36 | { "LATIN4", LATIN4 }, | ^~~~~~~~ multibyte.c:36:11: note: (near initialization for 'CS_Table[11].name') multibyte.c:37:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 37 | { "LATIN5", LATIN5 }, | ^~~~~~~~ multibyte.c:37:11: note: (near initialization for 'CS_Table[12].name') multibyte.c:38:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 38 | { "LATIN6", LATIN6 }, | ^~~~~~~~ multibyte.c:38:11: note: (near initialization for 'CS_Table[13].name') multibyte.c:39:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 39 | { "LATIN7", LATIN7 }, | ^~~~~~~~ multibyte.c:39:11: note: (near initialization for 'CS_Table[14].name') multibyte.c:40:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 40 | { "LATIN8", LATIN8 }, | ^~~~~~~~ multibyte.c:40:11: note: (near initialization for 'CS_Table[15].name') multibyte.c:41:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 41 | { "LATIN9", LATIN9 }, | ^~~~~~~~ multibyte.c:41:11: note: (near initialization for 'CS_Table[16].name') multibyte.c:42:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 42 | { "LATIN10", LATIN10 }, | ^~~~~~~~~ multibyte.c:42:11: note: (near initialization for 'CS_Table[17].name') multibyte.c:43:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 43 | { "WIN1256", WIN1256 }, /* Arabic since 7.3 */ | ^~~~~~~~~ multibyte.c:43:11: note: (near initialization for 'CS_Table[18].name') multibyte.c:44:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 44 | { "WIN1258", WIN1258 }, /* Vietnamese since 8.1 */ | ^~~~~~~~~ multibyte.c:44:11: note: (near initialization for 'CS_Table[19].name') multibyte.c:45:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 45 | { "WIN866", WIN866 }, /* since 8.1 */ | ^~~~~~~~ multibyte.c:45:11: note: (near initialization for 'CS_Table[20].name') multibyte.c:46:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 46 | { "WIN874", WIN874 }, /* Thai since 7.3 */ | ^~~~~~~~ multibyte.c:46:11: note: (near initialization for 'CS_Table[21].name') multibyte.c:47:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 47 | { "KOI8", KOI8R }, | ^~~~~~ multibyte.c:47:11: note: (near initialization for 'CS_Table[22].name') multibyte.c:48:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 48 | { "WIN1251", WIN1251 }, /* Cyrillic */ | ^~~~~~~~~ multibyte.c:48:11: note: (near initialization for 'CS_Table[23].name') multibyte.c:49:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 49 | { "WIN1252", WIN1252 }, /* Western Europe since 8.1 */ | ^~~~~~~~~ multibyte.c:49:11: note: (near initialization for 'CS_Table[24].name') multibyte.c:50:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 50 | { "ISO_8859_5", ISO_8859_5 }, | ^~~~~~~~~~~~ multibyte.c:50:11: note: (near initialization for 'CS_Table[25].name') multibyte.c:51:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 51 | { "ISO_8859_6", ISO_8859_6 }, | ^~~~~~~~~~~~ multibyte.c:51:11: note: (near initialization for 'CS_Table[26].name') multibyte.c:52:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 52 | { "ISO_8859_7", ISO_8859_7 }, | ^~~~~~~~~~~~ multibyte.c:52:11: note: (near initialization for 'CS_Table[27].name') multibyte.c:53:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 53 | { "ISO_8859_8", ISO_8859_8 }, | ^~~~~~~~~~~~ multibyte.c:53:11: note: (near initialization for 'CS_Table[28].name') multibyte.c:54:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 54 | { "WIN1250", WIN1250 }, /* Central Europe */ | ^~~~~~~~~ multibyte.c:54:11: note: (near initialization for 'CS_Table[29].name') multibyte.c:55:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 55 | { "WIN1253", WIN1253 }, /* Greek since 8.2 */ | ^~~~~~~~~ multibyte.c:55:11: note: (near initialization for 'CS_Table[30].name') multibyte.c:56:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 56 | { "WIN1254", WIN1254 }, /* Turkish since 8.2 */ | ^~~~~~~~~ multibyte.c:56:11: note: (near initialization for 'CS_Table[31].name') multibyte.c:57:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 57 | { "WIN1255", WIN1255 }, /* Hebrew since 8.2 */ | ^~~~~~~~~ multibyte.c:57:11: note: (near initialization for 'CS_Table[32].name') multibyte.c:58:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 58 | { "WIN1257", WIN1257 }, /* Baltic(North Europe) since 8.2 */ | ^~~~~~~~~ multibyte.c:58:11: note: (near initialization for 'CS_Table[33].name') multibyte.c:60:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 60 | { "EUC_JIS_2004", EUC_JIS_2004}, /* EUC for SHIFT-JIS-2004 Japanese, since 8.3 */ | ^~~~~~~~~~~~~~ multibyte.c:60:11: note: (near initialization for 'CS_Table[34].name') multibyte.c:61:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 61 | { "SJIS", SJIS }, | ^~~~~~ multibyte.c:61:11: note: (near initialization for 'CS_Table[35].name') multibyte.c:62:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 62 | { "BIG5", BIG5 }, | ^~~~~~ multibyte.c:62:11: note: (near initialization for 'CS_Table[36].name') multibyte.c:63:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 63 | { "GBK", GBK }, /* since 7.3 */ | ^~~~~ multibyte.c:63:11: note: (near initialization for 'CS_Table[37].name') multibyte.c:64:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 64 | { "UHC", UHC }, /* since 7.3 */ | ^~~~~ multibyte.c:64:11: note: (near initialization for 'CS_Table[38].name') multibyte.c:65:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 65 | { "GB18030", GB18030 }, /* since 7.3 */ | ^~~~~~~~~ multibyte.c:65:11: note: (near initialization for 'CS_Table[39].name') multibyte.c:66:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 66 | { "SHIFT_JIS_2004", SHIFT_JIS_2004 }, /* SHIFT-JIS-2004 Japanese, standard JIS X 0213, since 8.3 */ | ^~~~~~~~~~~~~~~~ multibyte.c:66:11: note: (near initialization for 'CS_Table[40].name') multibyte.c:67:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 67 | { "OTHER", OTHER } | ^~~~~~~ multibyte.c:67:11: note: (near initialization for 'CS_Table[41].name') multibyte.c:72:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 72 | { "UNICODE", UTF8 }, | ^~~~~~~~~ multibyte.c:72:11: note: (near initialization for 'CS_Alias[0].name') multibyte.c:73:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 73 | { "TCVN", WIN1258 }, | ^~~~~~ multibyte.c:73:11: note: (near initialization for 'CS_Alias[1].name') multibyte.c:74:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 74 | { "ALT", WIN866 }, | ^~~~~ multibyte.c:74:11: note: (near initialization for 'CS_Alias[2].name') multibyte.c:75:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 75 | { "WIN", WIN1251 }, | ^~~~~ multibyte.c:75:11: note: (near initialization for 'CS_Alias[3].name') multibyte.c:76:11: warning: pointer targets in initialization of 'UCHAR *' {aka 'unsigned char *'} from 'char *' differ in signedness [-Wpointer-sign] 76 | { "OTHER", OTHER } | ^~~~~~~ multibyte.c:76:11: note: (near initialization for 'CS_Alias[4].name') multibyte.c: In function 'pg_CS_code': multibyte.c:88:34: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness [-Wpointer-sign] 88 | if (0 == stricmp(characterset_string, CS_Table[i].name)) | ^~~~~~~~~~~~~~~~~~~ | | | const UCHAR * {aka const unsigned char *} In file included from connection.h:16, from qresult.h:14, from multibyte.h:9, from multibyte.c:11: /usr/include/string.h:133:23: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 133 | extern int strcasecmp(const char *, const char *); | ^~~~~~~~~~~~ multibyte.c:88:66: warning: pointer targets in passing argument 2 of 'strcasecmp' differ in signedness [-Wpointer-sign] 88 | if (0 == stricmp(characterset_string, CS_Table[i].name)) | ~~~~~~~~~~~^~~~~ | | | UCHAR * {aka unsigned char *} /usr/include/string.h:133:37: note: expected 'const char *' but argument is of type 'UCHAR *' {aka 'unsigned char *'} 133 | extern int strcasecmp(const char *, const char *); | ^~~~~~~~~~~~ multibyte.c:98:42: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness [-Wpointer-sign] 98 | if (0 == stricmp(characterset_string, CS_Alias[i].name)) | ^~~~~~~~~~~~~~~~~~~ | | | const UCHAR * {aka const unsigned char *} /usr/include/string.h:133:23: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 133 | extern int strcasecmp(const char *, const char *); | ^~~~~~~~~~~~ multibyte.c:98:74: warning: pointer targets in passing argument 2 of 'strcasecmp' differ in signedness [-Wpointer-sign] 98 | if (0 == stricmp(characterset_string, CS_Alias[i].name)) | ~~~~~~~~~~~^~~~~ | | | UCHAR * {aka unsigned char *} /usr/include/string.h:133:37: note: expected 'const char *' but argument is of type 'UCHAR *' {aka 'unsigned char *'} 133 | extern int strcasecmp(const char *, const char *); | ^~~~~~~~~~~~ multibyte.c: In function 'check_client_encoding': multibyte.c:139:51: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] 139 | if (0 != strnicmp(cptr, "set", 3)) | ^~~~ | | | const UCHAR * {aka const unsigned char *} /usr/include/string.h:134:24: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 134 | extern int strncasecmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ multibyte.c:148:51: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] 148 | if (0 != strnicmp(cptr, "client_encoding", 15)) | ^~~~ | | | const UCHAR * {aka const unsigned char *} /usr/include/string.h:134:24: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 134 | extern int strncasecmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ multibyte.c:157:51: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness [-Wpointer-sign] 157 | if (0 != strnicmp(cptr, "to", 2)) | ^~~~ | | | const UCHAR * {aka const unsigned char *} /usr/include/string.h:134:24: note: expected 'const char *' but argument is of type 'const UCHAR *' {aka 'const unsigned char *'} 134 | extern int strncasecmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ multibyte.c: In function 'pg_CS_name': multibyte.c:198:16: warning: pointer targets in returning 'const char *' from a function with return type 'const UCHAR *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] 198 | return (OTHER_STRING); | ^ multibyte.c: In function 'pg_mb_maxlen': multibyte.c:202:1: error: type of 'characterset_code' defaults to 'int' [-Wimplicit-int] 202 | pg_mb_maxlen(characterset_code) | ^~~~~~~~~~~~ multibyte.c: In function 'CC_lookup_cs_old': multibyte.c:493:42: warning: pointer targets in passing argument 2 of 'PGAPI_ExecDirect' differ in signedness [-Wpointer-sign] 493 | result = PGAPI_ExecDirect(hstmt, "Show Client_Encoding", SQL_NTS, 0); | ^~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from multibyte.c:14: pgapifunc.h:88:32: note: expected 'const SQLCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 88 | const SQLCHAR *StatementText, SQLINTEGER TextLength, UWORD flag); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ multibyte.c:498:52: warning: pointer targets in passing argument 4 of 'PGAPI_Error' differ in signedness [-Wpointer-sign] 498 | if (PGAPI_Error(NULL, NULL, hstmt, sqlState, NULL, errormsg, | ^~~~~~~~ | | | char * pgapifunc.h:70:34: note: expected 'SQLCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 70 | SQLCHAR *Sqlstate, SQLINTEGER *NativeError, | ~~~~~~~~~^~~~~~~~ multibyte.c:498:68: warning: pointer targets in passing argument 6 of 'PGAPI_Error' differ in signedness [-Wpointer-sign] 498 | if (PGAPI_Error(NULL, NULL, hstmt, sqlState, NULL, errormsg, | ^~~~~~~~ | | | char * pgapifunc.h:71:34: note: expected 'SQLCHAR *' {aka 'unsigned char *'} but argument is of type 'char *' 71 | SQLCHAR *MessageText, SQLSMALLINT BufferLength, | ~~~~~~~~~^~~~~~~~~~~ multibyte.c: In function 'CC_lookup_characterset': multibyte.c:652:41: warning: pointer targets in passing argument 1 of 'pg_CS_code' differ in signedness [-Wpointer-sign] 652 | self->ccsc = pg_CS_code(tencstr); | ^~~~~~~ | | | char * multibyte.c:82:25: note: expected 'const UCHAR *' {aka 'const unsigned char *'} but argument is of type 'char *' 82 | pg_CS_code(const UCHAR *characterset_string) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ multibyte.c: In function 'encoded_str_constr': multibyte.c:673:24: warning: pointer targets in assignment from 'const char *' to 'const UCHAR *' {aka 'const unsigned char *'} differ in signedness [-Wpointer-sign] 673 | encstr->encstr = str; | ^ gmake[1]: *** [Makefile:432: multibyte.lo] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: Leaving directory '/home/pbulk/build/databases/odbc-postgresql/work/psqlodbc-09.00.0200' gmake: *** [Makefile:292: all] Error 2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/databases/odbc-postgresql *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/databases/odbc-postgresql