1.1 --- a/templates/native/iconv.c Thu Jan 19 19:23:39 2017 +0100
1.2 +++ b/templates/native/iconv.c Thu Jan 19 23:33:10 2017 +0100
1.3 @@ -33,7 +33,7 @@
1.4 static void __raise_incomplete_sequence_error(__attr value, __attr arg)
1.5 {
1.6 #ifdef __HAVE_posix_iconv_IncompleteSequenceError
1.7 - __attr args[3] = {{0, 0}, value, arg};
1.8 + __attr args[3] = {__NULL, value, arg};
1.9 __attr exc = __new_posix_iconv_IncompleteSequenceError(args);
1.10 __Raise(exc);
1.11 #endif /* __HAVE_posix_iconv_IncompleteSequenceError */
1.12 @@ -42,7 +42,7 @@
1.13 static void __raise_invalid_sequence_error(__attr value, __attr arg)
1.14 {
1.15 #ifdef __HAVE_posix_iconv_InvalidSequenceError
1.16 - __attr args[3] = {{0, 0}, value, arg};
1.17 + __attr args[3] = {__NULL, value, arg};
1.18 __attr exc = __new_posix_iconv_InvalidSequenceError(args);
1.19 __Raise(exc);
1.20 #endif /* __HAVE_posix_iconv_InvalidSequenceError */
1.21 @@ -117,6 +117,10 @@
1.22
1.23 else
1.24 __raise_os_error(__new_int(errno), __builtins___none_None);
1.25 +
1.26 + /* Should never be reached: included to satisfy the compiler. */
1.27 +
1.28 + return __builtins___none_None;
1.29 }
1.30
1.31 __attr __fn_native_iconv_iconv_close(__attr __args[])