I'm getting these on macOS (I haven't investigated what's going on exactly):
[358/372] Compiling C object tests/test_encodings.p/test_encodings.c.o
../tests/test_encodings.c:144:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
144 | TEST_UTF8(TRUE, "Thĩs îs å véry basìč ÅSÇǏÍ test", NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:144:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:145:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
145 | TEST_UTF8(TRUE, "Thĩs îs å véry basìč ÅSÇǏÍ test", "None");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:145:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:146:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
146 | TEST_UTF8(TRUE, "Thĩs îs å véry basìč ÅSÇǏÍ test", "UTF-8");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:146:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:147:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
147 | TEST_UTF8(FALSE, "Wíťh\0søme\0NÙLs\0", NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:147:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:148:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
148 | TEST_UTF8(FALSE, "Wíťh\0søme\0NÙLs\0", "UTF-8"); /* the NUL doesn't pass the UTF-8 check */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:148:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:149:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
149 | TEST_UTF8(TRUE, "Wíťh\0søme\0NÙLs\0", "None"); /* with None we do no data validation, but report partial output */
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:149:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:152:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
152 | TEST_UTF8(TRUE, "coding:utf-8 bãśïč", NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:152:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:153:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
153 | TEST_UTF8(FALSE, "coding:utf-8 Wíťh\0søme\0NÙLs", NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:153:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:155:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
155 | TEST_UTF8(TRUE, UTF8_BOM"With BOM", NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:155:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:163:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
163 | TEST_UTF8(FALSE, "Th\xec""s", "UTF-8");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:163:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:164:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
164 | TEST_UTF8(FALSE, "Th\xec""s\0", "UTF-8");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:164:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
../tests/test_encodings.c:165:2: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
165 | TEST_UTF8(FALSE, "\0Th\xec""s", "UTF-8");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
139 | g_assert(success == assert_convert_to_utf8_auto(str, G_N_ELEMENTS(str) - 1, G_N_ELEMENTS(str) - 1, \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141 | forced_enc, has_bom, strlen(str) != G_N_ELEMENTS(str) - 1)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/test_encodings.c:110:4: note: expanded from macro 'assert_convert_to_utf8_auto'
110 | expected_output, expected_size, expected_encoding, expected_has_bom, expected_partial)
| ^
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gtestutils.h:276:59: note: expanded from macro 'g_assert'
276 | if G_LIKELY (expr) ; else \
| ~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1248:59: note: expanded from macro 'G_LIKELY'
1248 | #define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))
| ~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1247:66: note: expanded from macro '_G_BOOLEAN_EXPR'
1247 | #define _G_BOOLEAN_EXPR(expr) _G_BOOLEAN_EXPR_IMPL (__COUNTER__, expr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/Users/jhbuild/gtk/inst/include/glib-2.0/glib/gmacros.h:1241:8: note: expanded from macro '_G_BOOLEAN_EXPR_IMPL'
1241 | if (expr) \
| ^~~~
../tests/test_encodings.c:165:2: note: use array indexing to silence this warning
../tests/test_encodings.c:140:21: note: expanded from macro 'TEST_UTF8'
140 | forced_enc, str + (has_bom ? 3 : 0), G_N_ELEMENTS(str) - 1 - (has_bom ? 3 : 0), \
| ^
12 warnings generated.
[372/372] Linking target tests/test_sidebar
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.