1.1 --- a/templates/native/io.c Thu Jan 19 19:23:39 2017 +0100
1.2 +++ b/templates/native/io.c Thu Jan 19 23:33:10 2017 +0100
1.3 @@ -84,6 +84,10 @@
1.4 attr.datavalue = (void *) f;
1.5 return attr;
1.6 }
1.7 +
1.8 + /* Should never be reached: included to satisfy the compiler. */
1.9 +
1.10 + return __builtins___none_None;
1.11 }
1.12
1.13 __attr __fn_native_io_fdopen(__attr __args[])
1.14 @@ -113,6 +117,10 @@
1.15 attr.datavalue = (void *) f;
1.16 return attr;
1.17 }
1.18 +
1.19 + /* Should never be reached: included to satisfy the compiler. */
1.20 +
1.21 + return __builtins___none_None;
1.22 }
1.23
1.24 __attr __fn_native_io_fread(__attr __args[])
1.25 @@ -134,7 +142,7 @@
1.26 {
1.27 if (feof(f) && (have_read == 0))
1.28 __raise_eof_error();
1.29 - else if (error = ferror(f))
1.30 + else if ((error = ferror(f)))
1.31 __raise_io_error(__new_int(error));
1.32 }
1.33
1.34 @@ -162,7 +170,7 @@
1.35 {
1.36 if (feof(f))
1.37 __raise_eof_error();
1.38 - else if (error = ferror(f))
1.39 + else if ((error = ferror(f)))
1.40 __raise_io_error(__new_int(error));
1.41 }
1.42