[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: libldap/libldap_r UTF Compilation Warning (ITS#2955)
Apparently a wide character (wchar_t) on Windows is a 16 bit unsigned
integer, while on most Unix systems it's a 32 bit signed integer. This issue
has been ignored so far because these functions are not actually used by
anything else in the OpenLDAP code base. If you need them to work, you're
welcome to submit a patch.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support
> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of jason@raneses.com
> Full_Name: Jason Raneses
> Version: 2.2.5
> OS: Windows XP
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (206.54.156.254)
>
>
> When compiling libldap and libldap_r using MinGW, I received
> the following
> warnings during the compilation of utf-8-conv.c. I'm using gcc 3.3.1.
>
> mgcc -g -O2 -I../../include -I../../include -DLDAP_R_COMPILE
> -I./../libldap
> -I/usr/local/mingw/include -I/usr/include/w32api
> -DLDAP_LIBRARY -c utf-8-conv.c
> -DDLL_EXPORT -DPIC -o .libs/utf-8-conv.lo
> utf-8-conv.c: In function `ldap_x_wc_to_utf8':
> utf-8-conv.c:188: warning: comparison is always false due to
> limited range of
> data type
> utf-8-conv.c:194: warning: comparison is always true due to
> limited range of
> data type
> utf-8-conv.c:196: warning: comparison is always true due to
> limited range of
> data type
> utf-8-conv.c:198: warning: comparison is always true due to
> limited range of
> data type
> utf-8-conv.c:200: warning: comparison is always true due to
> limited range of
> data type
> utf-8-conv.c:206: warning: comparison is always false due to
> limited range of
> data type
> utf-8-conv.c:220: warning: comparison is always true due to
> limited range of
> data type
> utf-8-conv.c:227: warning: comparison is always true due to
> limited range of
> data type
> utf-8-conv.c:235: warning: comparison is always true due to
> limited range of
> data type
> utf-8-conv.c:244: warning: comparison is always true due to
> limited range of
> data type
>