Forum: Ruby Differing signedness warnings when compiling ruby-odbc.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ben Gribaudo (Guest)
on 2006-01-09 17:24
(Received via mailing list)
Hi,

When compiling ruby-odbc 0.996 on Ubuntu Breezy, gcc outputs a number
of warnings that "pointer targets in passing argument x of y differ in
signedness". (see output below)

Should these warnings concern me? Is there a way to resolve the
underlying issue?

Box info:
GNU make 3.80.
Linux version 2.6.12-10-686-smp (buildd@terranova) (gcc version 3.4.5
20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8)) #1 SMP Fri Nov 18
12:27:41 UTC 2005

Thank you,
Ben

=== Output from Make ===
gcc -fPIC -Wall -g -O2  -fPIC  -I. -I/usr/lib/ruby/1.8/i486-linux
-I/usr/lib/rub
y/1.8/i486-linux -I. -DHAVE_SQL_H -DHAVE_SQLEXT_H -DHAVE_TYPE_SQLTCHAR
-DHAVE_OD
BCINST_H  -c odbc.c
odbc.c: In function
âget_err_or_infoâ:odbc.c:761: warning: pointer targets in passing argument 4 of
âSQLErrorâ differ
in signedness
odbc.c:761: warning: pointer targets in passing argument 6 of
âSQLErrorâ differ
in signedness
odbc.c: In function
âcallsqlâ:odbc.c:949: warning: pointer targets in passing argument 4 of
âSQLErrorâ differ
in signedness
odbc.c:949: warning: pointer targets in passing argument 6 of
âSQLErrorâ differ
in signedness
odbc.c: In function
âupcase_ifâ:odbc.c:1994: warning: pointer targets in initialization differ in
signedness
odbc.c: In function
âdbc_infoâ:odbc.c:2305: warning: pointer targets in passing argument 6 of
âSQLTablesâ diffe
r in signedness
odbc.c:2313: warning: pointer targets in passing argument 6 of
âSQLColumnsâ diff
er in signedness
odbc.c:2321: warning: pointer targets in passing argument 6 of
âSQLPrimaryKeysâ
differ in signedness
odbc.c:2332: warning: pointer targets in passing argument 6 of
âSQLStatisticsâ d
iffer in signedness
odbc.c:2348: warning: pointer targets in passing argument 6 of
âSQLForeignKeysâ
differ in signedness
odbc.c:2348: warning: pointer targets in passing argument 12 of
âSQLForeignKeysâ
 differ in signedness
odbc.c:2357: warning: pointer targets in passing argument 6 of
âSQLTablePrivileg
esâ differ in signedness
odbc.c:2365: warning: pointer targets in passing argument 6 of
âSQLProceduresâ d
iffer in signedness
odbc.c:2374: warning: pointer targets in passing argument 6 of
âSQLProcedureColu
mnsâ differ in signedness
odbc.c:2374: warning: pointer targets in passing argument 8 of
âSQLProcedureColu
mnsâ differ in signedness
odbc.c:2385: warning: pointer targets in passing argument 7 of
âSQLSpecialColumn
sâ differ in signedness
odbc.c: In function
âstmt_cursornameâ:odbc.c:3763: warning: pointer targets in passing argument 2 of
âSQLSetCursorName
â differ in signedness
odbc.c: In function
âstmt_prep_intâ:odbc.c:4667: warning: pointer targets in passing argument 2 of
âSQLExecDirectâ d
iffer in signedness
odbc.c:4672: warning: pointer targets in passing argument 2 of
âSQLPrepareâ diff
er in signedness
gcc -shared  -L"/usr/lib" -o odbc.so odbc.o  -lruby1.8 -lodbcinst
-lodbc  -lpthr
ead -ldl -lcrypt -lm   -lc
This topic is locked and can not be replied to.