[m-dev.] C compiler warnings in hlc grades
Julien Fischer
jfischer at opturion.com
Sun Jul 29 23:11:35 AEST 2018
Hi,
The master branch is currently getting quite a lot of compiler warnings
of about missing casts in hlc grades.
../scripts/mgnuc --grade hlc.gc -- -c string.to_string.c -o
string.to_string.o
string.parse_runtime.c: In function
‘mercury__string__parse_runtime__get_first_spec_10_p_0’:
string.parse_runtime.c:2351:72: warning: assignment makes pointer from
integer without a cast [enabled by default]
MR_hl_field(MR_mktag(0), STATE_VARIABLE_Flags_70_388, 0) =
((((MR_Unsigned) (((MR_Box) (Var_71))) << (MR_Integer) 4)) |
(((((MR_Unsigned) (((MR_Box) (Var_132))) << (MR_Integer) 3)) |
(((((MR_Unsigned) (((MR_Box) (Var_133))) << (MR_Integer) 2)) |
(((((MR_Unsigned) (((MR_Box) (Var_134))) << (MR_Integer) 1)) |
(MR_Unsigned) (((MR_Box) (Var_135))))))))));
^
string.parse_util.c: In function
‘mercury__string__parse_util__gather_flag_chars_4_p_0’:
string.parse_util.c:3505:71: warning: assignment makes pointer from
integer without a cast [enabled by default]
MR_hl_field(MR_mktag(0), STATE_VARIABLE_Flags_21_21, 0) =
((((MR_Unsigned) (((MR_Box) (Var_54))) << (MR_Integer) 4)) |
(((((MR_Unsigned) (((MR_Box) (Var_20))) << (MR_Integer) 3)) |
(((((MR_Unsigned) (((MR_Box) (Var_52))) << (MR_Integer) 2)) |
(((((MR_Unsigned) (((MR_Box) (Var_51))) << (MR_Integer) 1)) |
(MR_Unsigned) (((MR_Box) (Var_50))))))))))
Julien.
More information about the developers
mailing list