Differing signedness warnings when compiling ruby-odbc.

Discussion in 'Ruby' started by Ben Gribaudo, Jan 9, 2006.

  1. Ben Gribaudo

    Ben Gribaudo Guest

    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
    Ben Gribaudo, Jan 9, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter
    Replies:
    5
    Views:
    14,035
    Dale King
    Jun 2, 2006
  2. Frederick Gotham

    Bitshifting independant of signedness

    Frederick Gotham, Aug 24, 2006, in forum: C Programming
    Replies:
    4
    Views:
    335
    Michael Mair
    Aug 25, 2006
  3. Pietro Cerutti

    char * signedness

    Pietro Cerutti, Jul 5, 2007, in forum: C Programming
    Replies:
    17
    Views:
    628
  4. Philipp Klaus Krause

    int*_t, int_least*_t, int_fast*_t signedness

    Philipp Klaus Krause, Jun 14, 2010, in forum: C Programming
    Replies:
    5
    Views:
    613
    Keith Thompson
    Jun 14, 2010
  5. DJ Jazzy Linefeed
    Replies:
    3
    Views:
    87
    DJ Jazzy Linefeed
    May 16, 2008
Loading...

Share This Page