src/hb-private.hh | 2 +- test/api/test-buffer.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-)
New commits: commit 0db6c6f214a83ffeeefb7c3b77476567e534facb Author: Behdad Esfahbod <beh...@behdad.org> Date: Sun Feb 11 18:28:10 2018 -0800 Add Sun compiler to no-visibility as well Fixes https://github.com/harfbuzz/harfbuzz/pull/776 diff --git a/src/hb-private.hh b/src/hb-private.hh index a516624a..dc0178dd 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -120,7 +120,7 @@ extern "C" void hb_free_impl(void *ptr); #endif #ifndef HB_INTERNAL -# if !defined(HB_NO_VISIBILITY) && !defined(__MINGW32__) && !defined(__CYGWIN__) +# if !defined(HB_NO_VISIBILITY) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(__SUNPRO_CC) # define HB_INTERNAL __attribute__((__visibility__("hidden"))) # else # define HB_INTERNAL commit d33ba163611c42acd0125472191ea40745f905eb Author: Behdad Esfahbod <beh...@behdad.org> Date: Sun Feb 11 18:26:41 2018 -0800 Fix more warnings diff --git a/test/api/test-buffer.c b/test/api/test-buffer.c index ef4fc855..b9a0268c 100644 --- a/test/api/test-buffer.c +++ b/test/api/test-buffer.c @@ -369,10 +369,10 @@ typedef struct { /* note: we skip the first and last byte when adding to buffer */ static const utf8_conversion_test_t utf8_conversion_tests[] = { - {"a\303\207", {-1}}, + {"a\303\207", {(hb_codepoint_t) -1}}, {"a\303\207b", {0xC7}}, - {"ab\303cd", {'b', -1, 'c'}}, - {"ab\303\302\301cd", {'b', -1, -1, -1, 'c'}} + {"ab\303cd", {'b', (hb_codepoint_t) -1, 'c'}}, + {"ab\303\302\301cd", {'b', (hb_codepoint_t) -1, (hb_codepoint_t) -1, (hb_codepoint_t) -1, 'c'}} }; static void @@ -715,10 +715,10 @@ typedef struct { static const utf16_conversion_test_t utf16_conversion_tests[] = { {{0x41, 0x004D, 0x0430, 0x4E8C, 0xD800, 0xDF02, 0x61} , {0x004D, 0x0430, 0x4E8C, 0x10302}}, {{0x41, 0xD800, 0xDF02, 0x61}, {0x10302}}, - {{0x41, 0xD800, 0xDF02}, {-1}}, - {{0x41, 0x61, 0xD800, 0xDF02}, {0x61, -1}}, - {{0x41, 0xD800, 0x61, 0xDF02}, {-1, 0x61}}, - {{0x41, 0xDF00, 0x61}, {-1}}, + {{0x41, 0xD800, 0xDF02}, {(hb_codepoint_t) -1}}, + {{0x41, 0x61, 0xD800, 0xDF02}, {0x61, (hb_codepoint_t) -1}}, + {{0x41, 0xD800, 0x61, 0xDF02}, {(hb_codepoint_t) -1, 0x61}}, + {{0x41, 0xDF00, 0x61}, {(hb_codepoint_t) -1}}, {{0x41, 0x61}, {0}} }; _______________________________________________ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/harfbuzz