Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Differing signedness warnings when compiling ruby-odbc.

Reply
Thread Tools

Differing signedness warnings when compiling ruby-odbc.

 
 
Ben Gribaudo
Guest
Posts: n/a
 
      01-09-2006
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-6ubuntu) #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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
int*_t, int_least*_t, int_fast*_t signedness Philipp Klaus Krause C Programming 5 06-14-2010 07:00 PM
char * signedness Pietro Cerutti C Programming 17 08-01-2007 11:11 PM
Bitshifting independant of signedness Frederick Gotham C Programming 4 08-25-2006 06:45 AM
JNI: Signedness with GetStringUTFChars() and ReleaseStringUTFChars() Peter Java 5 06-02-2006 09:25 PM
use warnings; and use Warnings; give different results Ted Sung Perl Misc 1 08-30-2004 10:22 PM



Advertisments