freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Lowden, James K" <LowdenJK AT bernstein.com>
- To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] warnings and oddities
- Date: Tue, 9 Dec 2003 17:02:36 -0500
> From: ZIGLIO Frediano [mailto:Frediano.Ziglio AT vodafone.com]
> Sent: December 9, 2003 5:31 AM
>
> ../../../src/tds/convert.c:1904: warning: assignment makes
> pointer from integer without a cast
>
> Due to strtok_r not declared
>
> ../../../src/tds/config.c:319: warning: subscript has type `char'
> ../../../src/tds/config.c:330: warning: subscript has type `char'
> ../../../src/tds/config.c:330: warning: subscript has type `char'
> ../../../src/tds/config.c:332: warning: subscript has type `char'
> ../../../src/tds/config.c:333: warning: subscript has type `char'
> ../../../src/tds/config.c:344: warning: subscript has type `char'
> ../../../src/tds/config.c:351: warning: subscript has type `char'
> ../../../src/tds/config.c:351: warning: subscript has type `char'
> ../../../src/tds/config.c:353: warning: subscript has type `char'
> ../../../src/tds/config.c:368: warning: subscript has type `char'
> ../../../src/tds/config.c:810: warning: subscript has type `char'
>
> Fixed in CVS, this can be a real problem too...
[etc.]
New files attached. I don't have time right now to look at the warnings,
but I thought you folks might be interested.
--jkl
-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the original
message. Please note that we do not accept account orders and/or instructions
by e-mail, and therefore will not be responsible for carrying out such orders
and/or instructions.
../../../src/replacements/iconv.c:125: warning: cast to pointer from integer
of different size
../../../src/replacements/iconv.c:153: warning: cast from pointer to integer
of different size
../../../src/replacements/iconv.c:178: warning: cast from pointer to integer
of different size
../../../src/replacements/iconv.c:200: warning: cast from pointer to integer
of different size
../../../src/replacements/vasprintf.c:58: warning: implicit declaration of
function `vsnprintf'
../../../src/tds/mem.c:581: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:582: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:583: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:584: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:585: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:586: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:587: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:588: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:589: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:590: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:591: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:592: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:593: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:677: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:678: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:679: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:680: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:681: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:682: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:683: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:684: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/mem.c:685: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/tds/token.c:1980: warning: cast from pointer to integer of
different size
../../../src/tds/write.c:159: warning: passing arg 5 of `tds_iconv' from
incompatible pointer type
../../../src/tds/write.c:159: warning: passing arg 7 of `tds_iconv' from
incompatible pointer type
../../../src/tds/convert.c:890: warning: long long int format, TDS_INT8 arg
(arg 3)
../../../src/tds/convert.c:949: warning: long long int format, TDS_INT8 arg
(arg 3)
../../../src/tds/convert.c:1715: warning: implicit declaration of function
`strtok_r'
../../../src/tds/convert.c:1715: warning: assignment makes pointer from
integer without a cast
../../../src/tds/convert.c:1904: warning: assignment makes pointer from
integer without a cast
../../../src/tds/config.c:813: warning: implicit declaration of function
`strtok_r'
../../../src/tds/config.c:813: warning: assignment makes pointer from integer
without a cast
../../../src/tds/config.c:820: warning: assignment makes pointer from integer
without a cast
../../../src/tds/config.c:822: warning: assignment makes pointer from integer
without a cast
../../../src/tds/config.c:825: warning: assignment makes pointer from integer
without a cast
../../../src/tds/config.c:826: warning: assignment makes pointer from integer
without a cast
../../../src/tds/config.c:827: warning: assignment makes pointer from integer
without a cast
../../../src/tds/config.c:835: warning: assignment makes pointer from integer
without a cast
../../../src/tds/config.c:837: warning: assignment makes pointer from integer
without a cast
../../../src/tds/config.c:840: warning: assignment makes pointer from integer
without a cast
../../../src/tds/iconv.c:731: warning: passing arg 3 of `iconv' from
incompatible pointer type
../../../src/tds/vstrbuild.c:116: warning: implicit declaration of function
`strtok_r'
../../../src/tds/vstrbuild.c:116: warning: assignment makes pointer from
integer without a cast
../../../src/tds/vstrbuild.c:116: warning: assignment makes pointer from
integer without a cast
../../../src/ctlib/ct.c:134: warning: implicit declaration of function
`asprintf'
../../../src/dblib/bcp.c:950: warning: passing arg 6 of `tds_iconv_fread'
from incompatible pointer type
../../../src/dblib/bcp.c:1738: warning: implicit declaration of function
`asprintf'
../../../src/odbc/odbc.c:564: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/odbc/odbc.c:579: warning: dereferencing type-punned pointer will
break strict-aliasing rules
../../../src/odbc/odbc.c:581: warning: dereferencing type-punned pointer will
break strict-aliasing rules
../../../src/odbc/odbc.c:715: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:723: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:727: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:928: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/odbc/odbc.c:929: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/odbc/odbc.c:942: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/odbc/odbc.c:952: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/odbc/odbc.c:1052: warning: type-punning to incomplete type might
break strict-aliasing rules
../../../src/odbc/odbc.c:1962: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:1974: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:1979: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2017: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2019: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2041: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2073: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2076: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2082: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2087: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2089: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2097: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2108: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:2117: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:4525: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:4566: warning: cast to pointer from integer of
different size
../../../src/odbc/odbc.c:4611: warning: cast to pointer from integer of
different size
../../../src/odbc/odbc.c:4617: warning: cast from pointer to integer of
different size
../../../src/odbc/odbc.c:4823: warning: cast to pointer from integer of
different size
../../../src/odbc/connectparams.c:212: warning: type-punning to incomplete
type might break strict-aliasing rules
../../../src/odbc/connectparams.c:256: warning: dereferencing type-punned
pointer will break strict-aliasing rules
../../../src/odbc/connectparams.c:264: warning: dereferencing type-punned
pointer will break strict-aliasing rules
../../../src/odbc/connectparams.c:271: warning: dereferencing type-punned
pointer will break strict-aliasing rules
../../../src/odbc/connectparams.c:289: warning: dereferencing type-punned
pointer will break strict-aliasing rules
../../../src/odbc/connectparams.c:291: warning: dereferencing type-punned
pointer will break strict-aliasing rules
../../../src/odbc/connectparams.c:295: warning: dereferencing type-punned
pointer will break strict-aliasing rules
../../../src/odbc/connectparams.c:297: warning: dereferencing type-punned
pointer will break strict-aliasing rules
../../../src/odbc/connectparams.c:303: warning: dereferencing type-punned
pointer will break strict-aliasing rules
../../../src/odbc/connectparams.c:304: warning: type-punning to incomplete
type might break strict-aliasing rules
../../../src/odbc/error.c:482: warning: implicit declaration of function
`asprintf'
../../../src/server/login.c:117: warning: type-punning to incomplete type
might break strict-aliasing rules
../../../src/server/login.c:139: warning: dereferencing type-punned pointer
will break strict-aliasing rules
../../../src/server/login.c:140: warning: dereferencing type-punned pointer
will break strict-aliasing rules
../../../src/server/login.c:211: warning: passing arg 5 of `tds_iconv' from
incompatible pointer type
../../../src/server/login.c:211: warning: passing arg 7 of `tds_iconv' from
incompatible pointer type
cc: Warning: ../../../src/tds/write.c, line 159: In this statement, the
referenced type of the pointer value "&inbytesleft" is "unsigned int", which
is not compatible with "unsigned long". (ptrmismatch)
cc: Warning: ../../../src/tds/write.c, line 159: In this statement, the
referenced type of the pointer value "&outbytesleft" is "unsigned int", which
is not compatible with "unsigned long". (ptrmismatch)
cc: Warning: ../../../src/tds/convert.c, line 1715: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/convert.c, line 1904: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/config.c, line 813: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/config.c, line 820: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/config.c, line 822: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/config.c, line 825: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/config.c, line 826: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/config.c, line 827: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/config.c, line 835: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/config.c, line 837: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/config.c, line 840: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/query.c, line 1127: In this statement, the
referenced type of the pointer value "blob_info->textvalue" is "signed char",
which is not compatible with "unsigned char". (ptrmismatch)
cc: Warning: ../../../src/tds/query.c, line 1131: In this statement, the
referenced type of the pointer value "src" is "unsigned char", which is not
compatible with "const signed char". (ptrmismatch)
cc: Warning: ../../../src/tds/query.c, line 1144: In this statement, the
referenced type of the pointer value "src" is "unsigned char", which is not
compatible with "const signed char". (ptrmismatch)
cc: Warning: ../../../src/tds/query.c, line 2042: In the initializer for src,
the referenced type of the pointer value
"¶ms->current_row[curcol->column_offset]" is "unsigned char", which is
not compatible with "signed char". (ptrmismatch)
cc: Warning: ../../../src/tds/iconv.c, line 731: In this statement, the
referenced type of the pointer value "&lquest_mark" is "int", which is not
compatible with "unsigned long". (ptrmismatch)
cc: Warning: ../../../src/tds/challenge.c, line 90: In this statement, &
before array "magic" is ignored. (addrarray)
cc: Warning: ../../../src/tds/challenge.c, line 94: In this statement, &
before array "magic" is ignored. (addrarray)
cc: Warning: ../../../src/tds/challenge.c, line 169: In this statement, &
before array "key" is ignored. (addrarray)
cc: Warning: ../../../src/tds/vstrbuild.c, line 116: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/tds/vstrbuild.c, line 116: In this statement,
"strtok_r(...)" of type "int", is being converted to "pointer to signed
char". (cvtdiftypes)
cc: Warning: ../../../src/dblib/bcp.c, line 950: In this statement, the
referenced type of the pointer value "coldata" is "unsigned char", which is
not compatible with "signed char". (ptrmismatch)
cc: Warning: ../../../src/dblib/bcp.c, line 950: In this statement, the
referenced type of the pointer value "&col_bytes_left" is "int", which is not
compatible with "unsigned long". (ptrmismatch)
cc: Warning: ../../../src/dblib/bcp.c, line 1546: In this statement, the
referenced type of the pointer value "(BYTE ...)malloc(...)" is "unsigned
char", which is not compatible with "signed char". (ptrmismatch)
-
[freetds] warnings and oddities,
Lowden, James K, 12/08/2003
- Re: [freetds] warnings and oddities, Christos Zoulas, 12/08/2003
- <Possible follow-up(s)>
- RE: [freetds] warnings and oddities, Marquess, Dustin, 12/08/2003
- RE: [freetds] warnings and oddities, ZIGLIO Frediano, 12/09/2003
- RE: [freetds] warnings and oddities, Marquess, Dustin, 12/09/2003
- RE: [freetds] warnings and oddities, Lowden, James K, 12/09/2003
Archive powered by MHonArc 2.6.24.