]> git.ipfire.org Git - thirdparty/make.git/commit
Clean up some warnings on Windows builds
authorPaul Smith <psmith@gnu.org>
Mon, 3 Oct 2022 19:06:12 +0000 (15:06 -0400)
committerPaul Smith <psmith@gnu.org>
Mon, 3 Oct 2022 20:08:14 +0000 (16:08 -0400)
commit3e20e376b7aa26fa43f81f23323c717c4cae1bfb
tree9de01ab8352ad2cb2b5e8499017a9ba3996a5227
parent7ddfc42ee3ab330fa51b10768bee94a140750a1f
Clean up some warnings on Windows builds

* src/arscan.c (parse_int): Avoid conversion from int to char and
check for overflow given a max value.
(ar_scan): Check intmax sizes then cast to the proper type.
(ar_member_touch): Get proper return type from ar_scan and cast it
to off_t.
* src/function.c (a_word_hash_cmp): Don't cast from size_t to int.
(func_filter_filterout): Count using unsigned long to avoid casts.
(construct_include_path): Explicitly cast to void*.
* src/shuffle.c (reverse_shuffle_array): Use size_t index.
* src/w32/subproc/sub_proc.c (process_wait_for_multiple_objects):
Initialize the return value in case the count is 0.
src/arscan.c
src/function.c
src/read.c
src/shuffle.c
src/w32/subproc/sub_proc.c