Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icu_tokenizer.c uses deprecated ubrk_safeClone #98

Open
dmacks opened this issue Mar 2, 2023 · 0 comments
Open

icu_tokenizer.c uses deprecated ubrk_safeClone #98

dmacks opened this issue Mar 2, 2023 · 0 comments

Comments

@dmacks
Copy link

dmacks commented Mar 2, 2023

Building yaz-5.34.0 on OS X 10.13 with external dependencies via fink, including libicu-72.1, I see:

/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/sw/include -I/sw/include/libxml2 -I/sw/include -I/sw/include -DYAZ_HAVE_ICU=1 -I./libstemmer_c/include -I/sw/include  -Os -D_THREAD_SAFE  -MT libyaz_icu_la-icu_tokenizer.lo -MD -MP -MF .deps/libyaz_icu_la-icu_tokenizer.Tpo -c -o libyaz_icu_la-icu_tokenizer.lo `test -f 'icu_tokenizer.c' || echo './'`icu_tokenizer.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/sw/include -I/sw/include/libxml2 -I/sw/include -I/sw/include -DYAZ_HAVE_ICU=1 -I./libstemmer_c/include -I/sw/include -Os -D_THREAD_SAFE -MT libyaz_icu_la-icu_tokenizer.lo -MD -MP -MF .deps/libyaz_icu_la-icu_tokenizer.Tpo -c icu_tokenizer.c  -fno-common -DPIC -o .libs/libyaz_icu_la-icu_tokenizer.o
icu_tokenizer.c:72:21: warning: 'ubrk_safeClone_72' is deprecated [-Wdeprecated-declarations]
    tokenizer->bi = ubrk_safeClone(old->bi, NULL, &bufferSize, &status);
                    ^
/sw/include/unicode/urename.h:511:24: note: expanded from macro 'ubrk_safeClone'
#define ubrk_safeClone U_ICU_ENTRY_POINT_RENAME(ubrk_safeClone)
                       ^
/sw/include/unicode/uvernum.h:123:47: note: expanded from macro 'U_ICU_ENTRY_POINT_RENAME'
#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
                                              ^
/sw/include/unicode/uvernum.h:122:51: note: expanded from macro 'U_DEF2_ICU_ENTRY_POINT_RENAME'
#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
                                                  ^
/sw/include/unicode/uvernum.h:121:50: note: expanded from macro 'U_DEF_ICU_ENTRY_POINT_RENAME'
#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
                                                 ^
<scratch space>:15:1: note: expanded from here
ubrk_safeClone_72
^
/sw/include/unicode/ubrk.h:320:1: note: 'ubrk_safeClone_72' has been explicitly marked deprecated here
U_DEPRECATED UBreakIterator * U_EXPORT2
^
/sw/include/unicode/umachine.h:116:29: note: expanded from macro 'U_DEPRECATED'
#define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED
                            ^
/sw/include/unicode/umachine.h:96:52: note: expanded from macro 'U_ATTRIBUTE_DEPRECATED'
#    define U_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated))
                                                   ^
1 warning generated.

ICU's docs say this function was deprecated as of version 69.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant